When we develop a plugin for WordPress, one of the most common task, is to get data from the database. For the main objects, such as pages, posts, categories of posts, the WordPress’ API provides us a set of simple functions, allowing us to get what we want.
For other objects, functions are rare or less flexible to use. So, we often quickly decide to query the database directly, what is not recommended. I just discover two functions to get objects from the WordPress taxonomy, without querying the database directly.
Lire la suite
