pre_remote_source
Filters the pingback remote source.
Usage
add_filter( 'pre_remote_source', 'wp_kama_pre_remote_source_filter', 10, 2 );
/**
* Function for `pre_remote_source` filter-hook.
*
* @param string $remote_source Response source for the page linked from.
* @param string $pagelinkedto URL of the page linked to.
*
* @return string
*/
function wp_kama_pre_remote_source_filter( $remote_source, $pagelinkedto ){
// filter...
return $remote_source;
}
- $remote_source(string)
- Response source for the page linked from.
- $pagelinkedto(string)
- URL of the page linked to.
Changelog
| Since 2.5.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-xmlrpc-server.php 7055
$remote_source = apply_filters( 'pre_remote_source', $remote_source, $pagelinkedto );