save_post firing only once on post creation
-
add_action( 'save_post', 'fires_on_save', 10, 3 ); function fires_on_save( $post_id, $post, $update ) { do_action( 'qm/debug', 'Save happened!' ); }
or
add_action( 'save_post_post', 'fires_on_save', 10, 3 ); function fires_on_save( $post_id, $post, $update ) { do_action( 'qm/debug', 'Save happened!' ); }
These codes are only firing when I create a post. After that no matter how much modification and save I do it won’t fire again.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘save_post firing only once on post creation’ is closed to new replies.