{$new_status}_{$post->post_type}

{$new_status}_{$post->post_type}

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('{$new_status}_{$post->post_type}') is found 1 times:

  • /wp-includes/post.php line 5448
    	 * @param int     $post_id    Post ID.
    	 * @param WP_Post $post       Post object.
    	 * @param string  $old_status Old post status.
    	 */
    	do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status );
    }
    
    /**
     * Fires actions after a post, its terms and meta data has been saved.
     *
     * @since 5.6.0