pingback_ping_source_uri
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-includes/class-wp-xmlrpc-server.php 6933
$pagelinkedfrom = apply_filters( 'pingback_ping_source_uri', $pagelinkedfrom, $pagelinkedto );
Where the hook is used in WordPress
wp-includes/default-filters.php 320
add_filter( 'pingback_ping_source_uri', 'pingback_ping_source_uri' );