WP hooks navigation: Home/browse • Actions index • Filters index
As of WP version 2.3, this hook has been renamed to {$new_status}_{$post->post_type}.
Runs when a page is published, or if it is edited and its status is "published". Action function arguments: page ID. (WARNING: this hook seems to never fire on v2.3 and higher. The 'transition_post_status' hook does work though; UPDATE : publish_page hook appears to be working as of 2.6)
This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.
This database has information for all major versions from WP 1.2.1 through 6.2.
Version | File | Line | Type | |
---|---|---|---|---|
2.1 | wp-includes/post.php | 696 | View in context | action |
2.2 | wp-includes/post.php | 698 | View in context | action |
2.3 | Renamed. See {$new_status}_{$post->post_type} |
We find related hooks using word stems. publish_page has 2 significant word stem(s): publish
, page
. Note that some of the hooks below may not appear in all versions of WP.