Learning Center

WordPress Plugin Repository not updating

When pushing a recent update to the Weever Apps plugin, the version number did not seem to be updating. Most documentation mentions updating the readme.txt file, but not the main plugin file version number also. Without updating both the new version will appear in the dropdown and as ‘development version,’ but not as the main… Read more »

WordPress AJAX response codes using status_header

I’m constantly searching around for the cleanest and most “WordPress way” to do things vs. re-inventing the wheel.  One function that helps write cleaner AJAX call handlers is status_header(), to inform the caller when things go wrong: add_action( ‘wp_ajax_myajaxaction’, ‘my_ajax_handler’ ); function my_ajax_handler() { if ( ! empty($_POST) and check_ajax_referer( ‘mynonce’, ‘nonce’ ) ) {… Read more »