Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: app_publish_post

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
667
668           do_action('edit_post', $post_ID);
669      }
670
671      if ($post_status == 'publish' && $post_type == 'post') {
672           do_action('publish_post', $post_ID);
673           if ( defined('XMLRPC_REQUEST') )
674                do_action('xmlrpc_publish_post', $post_ID);
675           if ( defined('APP_REQUEST') )
676                do_action('app_publish_post', $post_ID);
677
678           if ( !defined('WP_IMPORTING') ) {
679                if ( $post_pingback )
680                     $result = $wpdb->query("
681                          INSERT INTO $wpdb->postmeta
682                          (post_id,meta_key,meta_value)
683                          VALUES ('$post_ID','_pingme','1')
684                     ");
685                $result = $wpdb->query("