How should I be handling my theme version numbering?

It is good practise to use semantic versioning e.g. 1.0.1 MAJOR.MINOR.PATCH MAJOR version when you make incompatible changes, MINOR version when you add functionality in a backwards-compatible manner, and PATCH version when you make backwards-compatible bug fixes. Don’t update the version on every code commit in git (just do it manually), rather on every group … Read more

Highlight “Show all” item in wp_list_categories

Unfortunately there is no filter allowing to modify the “Show all” link directly or to add any class to this item: $output .= “<li class=”cat-item-all”><a href=”https://wordpress.stackexchange.com/questions/331852/$posts_page”>$show_option_all</a></li>”; But there is a wp_list_categories at the end of function that allows you to modify all the output. Here’s a filter that will highlight “Show all” option if no … Read more

Get a setting value conditionally in the Customizer api

I’m not sure if this is what you wanted, but you can use wp.customize.get() to get all the currently set Customizer settings: var settings = wp.customize.get(); // get all settings var border_style = settings[‘myplugin[border_style]’]; var border_color = settings[‘myplugin[border_color]’]; // Or, this works, too. var border_style = wp.customize.get()[‘myplugin[border_style]’]; var border_color = wp.customize.get()[‘myplugin[border_color]’]; Reference

Admin Notices don’t display on the admin screen for certain post

I found the answer. Notices in the Block Editor would require JavaScript code. ( function( wp ) { wp.data.dispatch(‘core/notices’).createNotice( ‘error’, // Can be one of: success, info, warning, error. ‘Error Message.’, // Text string to display. { isDismissible: true, // Whether the user can dismiss the notice. // Any actions the user can perform. actions: … Read more