Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: publish_phone

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
170      $post_ID = wp_insert_post($post_data);
171      if ( is_wp_error( $post_ID ) )
172           echo "\n" . $post_ID->get_error_message();
173
174      if (!$post_ID) {
175           // we couldn't post, for whatever reason. better move forward to the next email
176           continue;
177      }
178
179      do_action('publish_phone', $post_ID);
180
181      echo "\n<p><b>Author:</b> " . wp_specialchars($post_author) . "</p>";
182      echo "\n<p><b>Posted title:</b> " . wp_specialchars($post_title) . "<br />";
183
184      if(!$pop3->delete($i)) {
185           echo '<p>Oops '.wp_specialchars($pop3->ERROR).'</p></div>';
186           $pop3->reset();
187           exit;
188      } else {