edit_post_{$post->post_type}

edit_post_{$post->post_type}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

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

  • /wp-includes/class-wp-customize-manager.php line 3109
    3105
    3106
    3107
    3108
    3109
    3110
    3111
    3112
    3113
    3114
    3115
    $post->post_status = $new_status;
    wp_transition_post_status( $new_status, $previous_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 2798
    2794
    2795
    2796
    2797
    2798
    2799
    2800
    2801
    2802
    2803
    2804
         */
        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 5006
    5002
    5003
    5004
    5005
    5006
    5007
    5008
    5009
    5010
    5011
    5012
    *
     * @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 5225
    5221
    5222
    5223
    5224
    5225
    5226
    5227
    5228
    5229
    5230
    5231
    $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 );