Plugin README.txt isn’t updating in the Directory (stable tag is correct)

The short version is that you did it in the wrong order. First, you updated trunk with the new Stable Tag here: https://plugins.trac.wordpress.org/changeset/993543/post-deployment-hook Then, you actually tagged it here: https://plugins.trac.wordpress.org/changeset/993545/post-deployment-hook So between those commits, it updated and noticed you lacked the new directory. When it updated again later, it noticed the version had not changed … Read more

Certain functions are undefined when called form mu-plugins

Thanks to diggy from StackOverflow I’ve foudn that in the WordPress cycle, the file vars.php (containing my needed functions) is included after muplugins_loaded executes. Including wp_is_mobile() and current_user_can() in wrapper functions fixed my problem. CORRECT function my_epic_function() { if(current_user_can( ‘edit_posts’ )) { if(!wp_is_mobile()) { //code to be executed } } } add_action(‘init’, ‘my_epic_function’); INCORRECT function … Read more

Function/Class to list categories with checkboxes

You can make wp_category_checklist() available in any of your templates using: require_once( ABSPATH . ‘/wp-admin/includes/template.php’ ); wp_category_checklist(); If you would like to have a shortcode for it, that parses the available arguments, here’s an example: add_shortcode(‘frontend-category-checklist’, ‘frontend_category_checklist’); function frontend_category_checklist($atts) { // process passed arguments or assign WP defaults $atts = shortcode_atts( array( ‘post_id’ => 0, … Read more