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 »
Learning Center
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 »
jQuery Validator Plugin with a Custom Validation Function and Dependency Selectors
The jQuery validator plugin is a great way to add validation to forms in a clean way. Error messages shown and hidden when they attempt to submit, and on the fly when they correct the input. I recently added a new validation function to see if the field they entered was a valid twitter hashtag or… Read more »