$alloptions Whenever we are storing something on the WordPress options table via add_option() function, it stores the value in options table as well as cache. Yes, it stores it in 2 places. This is mainly for the quick retrieval or quick access. Let's see this with example., Above code will store test_option_key to the options... Continue Reading →
Custom media button creation with wp.media
All most every WordPress users will use media in their posts, pages and comments. So media files playing a vital role in our WordPress world. WordPress will provide you an option to add media files in to your post by default. But in some cases this button won't solve our problem. Especially when we are... Continue Reading →
Goodbye `get_terms`, Welcome `WP_Term_Query`
From WordPress 4.6, we have a new class called WP_Term_Query which will help us in querying the taxonomies easily. This class will give us more flexibility and ease of use like other classes like WP_Query,WP_User_Query, and WP_Comment_Query in WordPress. The main benefit is the caching and security measures. So you don't need to write complex and... Continue Reading →
You must be logged in to post a comment.