do_action( "{$old_status}_to_{$new_status}", WP_Post $post )

Fires when a post is transitioned from one status to another.


Description Description

The dynamic portions of the hook name, $new_status and $old status, refer to the old and new post statuses, respectively.


Parameters Parameters

$post

(WP_Post) Post object.


Top ↑

Source Source

File: wp-includes/post.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.