Is it fired after a post has been published?
Say I have a CPT and want to perform some automated actions based on the post that gets saved, can I do:
add_action('publish_myt_cpt', 'myfunction');
Is it fired after a post has been published?
Say I have a CPT and want to perform some automated actions based on the post that gets saved, can I do:
add_action('publish_myt_cpt', 'myfunction');
You must be logged in to post a comment.
It is fired in
wp-includes/post.php
on line 3026in the following function:
wp-includes/post.php: line 3014-3027