Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: save_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
184                ($post_ID, $post_category)
185                ");
186           }
187      }
188
189      add_meta($post_ID);
190
191      $wpdb->query("UPDATE $wpdb->posts SET guid = '" . get_permalink($post_ID) . "' WHERE ID = '$post_ID'");
192
193      do_action('save_post', $post_ID);
194
195      if ('publish' == $post_status) {
196           do_action('publish_post', $post_ID);
197           if ($post_pingback)
198                register_shutdown_function('pingback', $content, $post_ID);
199           register_shutdown_function('do_enclose', $content, $post_ID );
200           register_shutdown_function('do_trackbacks', $post_ID);
201      }
202