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 |
---|---|
3129 | /** |
3130 | * Fires just before pinging back links found in a post. |
3131 | * |
3132 | * @since 2.0.0 |
3133 | * |
3134 | * @param string[] $post_links Array of link URLs to be checked (passed by reference). |
3135 | * @param string[] $pung Array of link URLs already pinged (passed by reference). |
3136 | * @param int $post_id The post ID. |
3137 | */ |
3138 | do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) ); |
3139 |
|
3140 | foreach ( (array) $post_links as $pagelinkedto ) { |
3141 | $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); |
3142 |
|
3143 | if ( $pingback_server_url ) { |
3144 | if ( function_exists( 'set_time_limit' ) ) { |
3145 | // Allows an additional 60 seconds for each pingback to complete. |
3146 | set_time_limit( 60 ); |
3147 | } |