Add publish_page hook
git-svn-id: https://develop.svn.wordpress.org/trunk@3787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f81e74015b
commit
19ead08256
@ -208,6 +208,9 @@ function wp_insert_post($postarr = array()) {
|
||||
if ( !empty($page_template) )
|
||||
if ( ! update_post_meta($post_ID, '_wp_page_template', $page_template))
|
||||
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
||||
|
||||
if ( $post_status == 'publish' )
|
||||
do_action('publish_page', $post_ID);
|
||||
}
|
||||
|
||||
if ( 'future' == $post_status ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user