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
1790                if ( $test = @parse_url($link_test) ) {
1791                     if ( isset($test['query']) )
1792                          $post_links[] = $link_test;
1793                     elseif ( isset( $test['path'] ) && ( $test['path'] != '/' ) && ( $test['path'] != '' ) )
1794                          $post_links[] = $link_test;
1795                }
1796           endif;
1797      endforeach;
1798
1799      do_action_ref_array('pre_ping', array(&$post_links, &$pung));
1800
1801      foreach ( (array) $post_links as $pagelinkedto ) {
1802           $pingback_server_url = discover_pingback_server_uri( $pagelinkedto );
1803
1804           if ( $pingback_server_url ) {
1805                @ set_time_limit( 60 );
1806                 // Now, the RPC call
1807                $pagelinkedfrom = get_permalink($post_ID);
1808