Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/publish page


publish_page is an action triggered whenever a page is published, or if it is edited and the status is changed to publish.

This action hook is not depreciated!

Previously, on both this page and the Action Reference page, publish_page had been identified as depreciated since WordPress 2.3. That was incorrect. Since Version 2.3, publish_page is an action that adheres to the new form of post status transition actions {status}_{post_type}. For more information, see Post Status Transitions.


Post Status Transitions