How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met

You can add the following code in your plugin. I have used this in my ARB booking plugin and it worked perfectly. The full details of the code with explanation can be found here: class FT_AdminNotice { protected $min_wc=”5.0.0″; //replace ‘5.0.0’ with your dependent plugin version number /** * Register the activation hook */ public … Read more

Query categories that have a description

How about looping all available terms, if term has description, add to to an object_ids, something like this. add_filter( ‘wp_sitemaps_taxonomies_query_args’, function( $args, $taxonomy ) { // Show in sitemap categories and topics that have a description if ( $taxonomy == ‘category’ || $taxonomy == ‘post_tag’ ) { // get the terms of the taxonomy $terms … Read more