Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre_ping

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
2194      /**
2195       * Fires just before pinging back links found in a post.
2196       *
2197       * @since 2.0.0
2198       *
2199       * @param array &$post_links An array of post links to be checked, passed by reference.
2200       * @param array &$pung       Whether a link has already been pinged, passed by reference.
2201       * @param int   $post_ID     The post ID.
2202       */
2203      do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) );
2204
2205      foreach ( (array) $post_links as $pagelinkedto ) {
2206           $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );
2207
2208           if ( $pingback_server_url ) {
2209                @ set_time_limit( 60 );
2210                // Now, the RPC call
2211                $pagelinkedfrom = get_permalink($post_ID);
2212