WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
630 | && !is_local_attachment($link_test) ) : // Also, let's never ping local attachments. |
631 | $test = parse_url($link_test); |
632 | if (isset($test['query'])) |
633 | $post_links[] = $link_test; |
634 | elseif(($test['path'] != '/') && ($test['path'] != '')) |
635 | $post_links[] = $link_test; |
636 | endif; |
637 | endforeach; |
638 |
|
639 | do_action('pre_ping', array(&$post_links, &$pung)); |
640 |
|
641 | foreach ($post_links as $pagelinkedto){ |
642 | debug_fwrite($log, "Processing -- $pagelinkedto\n"); |
643 | $pingback_server_url = discover_pingback_server_uri($pagelinkedto, 2048); |
644 |
|
645 | if ($pingback_server_url) { |
646 | @ set_time_limit( 60 ); |
647 | // Now, the RPC call |
648 | debug_fwrite($log, "Page Linked To: $pagelinkedto \n"); |