Created
October 1, 2014 07:05
-
-
Save ooooak/a817eecc8f200a9bcfd7 to your computer and use it in GitHub Desktop.
wordpress after save post.
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
function on_save( $post_id ) { | |
$post_type = get_post_type($post_id); | |
// order page | |
if ($post_type == 'shop_order'){} | |
} | |
add_action( 'save_post', 'ag_on_booking_save' ); // called after post saved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment