pre_remote_source filter-hookWP 2.5.0

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_xmlrpc_server::pingback_ping()
pre_remote_source
wp-includes/class-wp-xmlrpc-server.php 6989
$remote_source = apply_filters( 'pre_remote_source', $remote_source, $pagelinkedto );

Where the hook is used in WordPress

Usage not found.