edit_post

edit_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('edit_post') is found 4 times:

  • /wp-includes/class-wp-customize-manager.php line 3112
    		/** This action is documented in wp-includes/post.php */
    		do_action( "edit_post_{$post->post_type}", $post->ID, $post );
    
    		/** This action is documented in wp-includes/post.php */
    		do_action( 'edit_post', $post->ID, $post );
    
    		/** This action is documented in wp-includes/post.php */
    		do_action( "save_post_{$post->post_type}", $post->ID, $post, true );
    
    		/** This action is documented in wp-includes/post.php */
    		do_action( 'save_post', $post->ID, $post, true );
    
  • /wp-includes/comment.php line 2801
    	/** This action is documented in wp-includes/post.php */
    	do_action( "edit_post_{$post->post_type}", $post_id, $post );
    
    	/** This action is documented in wp-includes/post.php */
    	do_action( 'edit_post', $post_id, $post );
    
    	return true;
    }
    
    //
    // Ping and trackback functions.
    
  • /wp-includes/post.php line 5016
    		 *
    		 * @param int     $post_id Post ID.
    		 * @param WP_Post $post    Post object.
    		 */
    		do_action( 'edit_post', $post_id, $post );
    
    		$post_after = get_post( $post_id );
    
    		/**
    		 * Fires once an existing post has been updated.
    		 *
    
  • /wp-includes/post.php line 5228
    	/** This action is documented in wp-includes/post.php */
    	do_action( "edit_post_{$post->post_type}", $post->ID, $post );
    
    	/** This action is documented in wp-includes/post.php */
    	do_action( 'edit_post', $post->ID, $post );
    
    	/** This action is documented in wp-includes/post.php */
    	do_action( "save_post_{$post->post_type}", $post->ID, $post, true );
    
    	/** This action is documented in wp-includes/post.php */
    	do_action( 'save_post', $post->ID, $post, true );
    

See this hook used in plugins: