edit_post action-hook . WP 1.2.0
Fires once an existing post has been updated.
Usage
add_action( 'edit_post', 'action_function_name_4225', 10, 2 ); function action_function_name_4225( $post_ID, $post ){ // action... }
- $post_ID(int)
- Post ID.
- $post(WP_Post)
- Post object.
Changelog
Since 1.2.0 | Introduced. |
Where the hook is called
edit_post
edit_post
wp-includes/post.php 4270
do_action( 'edit_post', $post_ID, $post );
wp-includes/post.php 4477
do_action( 'edit_post', $post->ID, $post );
wp-includes/class-wp-customize-manager.php 3097
do_action( 'edit_post', $post->ID, $post );
wp-includes/comment.php 2700
do_action( 'edit_post', $post_id, $post );