Sometimes you may want to know what a function outputs. Here is hopefully a good cheatsheat for you. get_terms Purpose: Get the term for a specific taxonomy (Developer page). Output If term found, return an array of WP_Term object If term does not exist, return WP_Error object Example use: Find top-level terms from a category […]
WordPress uses PHP as the core language. So die() would be just fine to use. In fact, I have used it several times and did not notice any major bugs. Never wonder what is the real different between them before I tried the wp_die() yesterday. This is how it is different on the look: So, […]
The purpose of this article is to provide some methods to customize a WordPress theme.
In this article, let’s discuss how to implement reCaptcha v3 on a custom forms and the differences among the reCaptcha versions.
So after a time learning and practicing, I realized there are some ways to get rid of multi-layered if-else nested conditions.
I have been working with WordPress for a while and one thing that irritates me is that the functions.php contains a lot of codes. This makes the file looks messy and hard to follow. Check out from here some methods to improve this.