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 |
|---|---|
| 2595 | /** |
| 2596 | * Fires just before pinging back links found in a post. |
| 2597 | * |
| 2598 | * @since 2.0.0 |
| 2599 | * |
| 2600 | * @param array &$post_links An array of post links to be checked, passed by reference. |
| 2601 | * @param array &$pung Whether a link has already been pinged, passed by reference. |
| 2602 | * @param int $post_ID The post ID. |
| 2603 | */ |
| 2604 | do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) ); |
| 2605 | |
| 2606 | foreach ( (array) $post_links as $pagelinkedto ) { |
| 2607 | $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); |
| 2608 | |
| 2609 | if ( $pingback_server_url ) { |
| 2610 | @ set_time_limit( 60 ); |
| 2611 | // Now, the RPC call |
| 2612 | $pagelinkedfrom = get_permalink( $post ); |
| 2613 | |