edit_post_{$post->post_type}

edit_post_{$post->post_type}

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('edit_post_{$post->post_type}') is found 4 times:

  • /wp-includes/class-wp-customize-manager.php line 3103
    		$post->post_status = $new_status;
    		wp_transition_post_status( $new_status, $old_status, $post );
    
    		/** 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 );
    
  • /wp-includes/comment.php line 2770
    	 */
    	do_action( 'wp_update_comment_count', $post_id, $new, $old );
    
    	/** 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;
    }
    
  • /wp-includes/post.php line 4706
    		 *
    		 * @param int     $post_id Post ID.
    		 * @param WP_Post $post    Post object.
    		 */
    		do_action( "edit_post_{$post->post_type}", $post_id, $post );
    
    		/**
    		 * Fires once an existing post has been updated.
    		 *
    		 * @since 1.2.0
    		 *
    
  • /wp-includes/post.php line 4925
    	$post->post_status = 'publish';
    	wp_transition_post_status( 'publish', $old_status, $post );
    
    	/** 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 );