save_post_{$post->post_type}

save_post_{$post->post_type}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('save_post_{$post->post_type}') is found 3 times:

  • /wp-includes/class-wp-customize-manager.php line 3115
    3111
    3112
    3113
    3114
    3115
    3116
    3117
    3118
    3119
    3120
    3121
    /** 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 );
     
    /** This action is documented in wp-includes/post.php */
    do_action( 'wp_insert_post', $post->ID, $post, true );
  • /wp-includes/post.php line 5049
    5045
    5046
    5047
    5048
    5049
    5050
    5051
    5052
    5053
    5054
    5055
    * @param int     $post_id Post ID.
     * @param WP_Post $post    Post object.
     * @param bool    $update  Whether this is an existing post being updated.
     */
    do_action( "save_post_{$post->post_type}", $post_id, $post, $update );
     
    /**
     * Fires once a post has been saved.
     *
     * @since 1.5.0
     *
  • /wp-includes/post.php line 5231
    5227
    5228
    5229
    5230
    5231
    5232
    5233
    5234
    5235
    5236
    5237
    /** 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 );
     
    /** This action is documented in wp-includes/post.php */
    do_action( 'wp_insert_post', $post->ID, $post, true );