Created
December 2, 2015 20:39
-
-
Save kraftbj/640d447105234d2d9104 to your computer and use it in GitHub Desktop.
Log shutdown after sync
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
add_action( 'transition_post_status' , 'log_after_sync_on_shutdown'); | |
function log_after_sync_on_shutdown(){ | |
add_action( 'shutdown' , 'log_message_priority_11' , 11 ); | |
} | |
function log_message_priority_11( ) { | |
_log('Message post from shutdown priority 11.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment