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 |
|---|---|
| 1675 | |
| 1676 | if ( $pingback_server_url ) { |
| 1677 | @ set_time_limit( 60 ); |
| 1678 | // Now, the RPC call |
| 1679 | $pagelinkedfrom = get_permalink($post_ID); |
| 1680 | |
| 1681 | // using a timeout of 3 seconds should be enough to cover slow servers |
| 1682 | $client = new IXR_Client($pingback_server_url); |
| 1683 | $client->timeout = 3; |
| 1684 | $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . $wp_version, $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom); |
| 1685 | // when set to true, this outputs debug messages by itself |
| 1686 | $client->debug = false; |
| 1687 | |
| 1688 | if ( $client->query('pingback.ping', $pagelinkedfrom, $pagelinkedto) || ( isset($client->error->code) && 48 == $client->error->code ) ) // Already registered |
| 1689 | add_ping( $post_ID, $pagelinkedto ); |
| 1690 | } |
| 1691 | } |
| 1692 | } |
| 1693 | |