{$old_status}_to_{$new_status}

{$old_status}_to_{$new_status}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('{$old_status}_to_{$new_status}') is found 1 times:

  • /wp-includes/post.php line 5708
    	 * @since 2.3.0
    	 *
    	 * @param WP_Post $post Post object.
    	 */
    	do_action( "{$old_status}_to_{$new_status}", $post );
    
    	/**
    	 * Fires when a post is transitioned from one status to another.
    	 *
    	 * The dynamic portions of the hook name, `$new_status` and `$post->post_type`,
    	 * refer to the new post status and post type, respectively.