Created
December 1, 2014 18:47
-
-
Save isotrope/608bb1da329870166afc to your computer and use it in GitHub Desktop.
Test to see if save_post hook is firing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Test to see if save_post is firing | |
* | |
* If it works, you should see an 'iso_save_post' entry in your wp_options table | |
* | |
*/ | |
function iso_test_save_post() { | |
add_option( 'iso_save_post', 'is_saving!' ); | |
} | |
add_action( 'save_post', 'iso_test_save_post' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment