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 |
---|---|
1850 | if ( isset($test['query']) ) |
1851 | $post_links[] = $link_test; |
1852 | elseif ( isset( $test['path'] ) && ( $test['path'] != '/' ) && ( $test['path'] != '' ) ) |
1853 | $post_links[] = $link_test; |
1854 | } |
1855 | endif; |
1856 | endforeach; |
1857 |
|
1858 | $post_links = array_unique( $post_links ); |
1859 | do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) ); |
1860 |
|
1861 | foreach ( (array) $post_links as $pagelinkedto ) { |
1862 | $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); |
1863 |
|
1864 | if ( $pingback_server_url ) { |
1865 | @ set_time_limit( 60 ); |
1866 | // Now, the RPC call |
1867 | $pagelinkedfrom = get_permalink($post_ID); |
1868 |
|