pingback_ping_source_uri filter-hookWP 3.6.0

Filters the pingback source URI.

Usage

add_filter( 'pingback_ping_source_uri', 'wp_kama_pingback_ping_source_uri_filter', 10, 2 );

/**
 * Function for `pingback_ping_source_uri` filter-hook.
 * 
 * @param string $pagelinkedfrom URI of the page linked from.
 * @param string $pagelinkedto   URI of the page linked to.
 *
 * @return string
 */
function wp_kama_pingback_ping_source_uri_filter( $pagelinkedfrom, $pagelinkedto ){

	// filter...
	return $pagelinkedfrom;
}
$pagelinkedfrom(string)
URI of the page linked from.
$pagelinkedto(string)
URI of the page linked to.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_xmlrpc_server::pingback_ping()
pingback_ping_source_uri
wp-includes/class-wp-xmlrpc-server.php 6869
$pagelinkedfrom = apply_filters( 'pingback_ping_source_uri', $pagelinkedfrom, $pagelinkedto );

Where the hook is used in WordPress

wp-includes/default-filters.php 310
add_filter( 'pingback_ping_source_uri', 'pingback_ping_source_uri' );