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 |
---|---|
6839 |
|
6840 | /** |
6841 | * Filters the pingback source URI. |
6842 | * |
6843 | * @since 3.6.0 |
6844 | * |
6845 | * @param string $pagelinkedfrom URI of the page linked from. |
6846 | * @param string $pagelinkedto URI of the page linked to. |
6847 | */ |
6848 | $pagelinkedfrom = apply_filters( 'pingback_ping_source_uri', $pagelinkedfrom, $pagelinkedto ); |
6849 |
|
6850 | if ( ! $pagelinkedfrom ) { |
6851 | return $this->pingback_error( 0, __( 'A valid URL was not provided.' ) ); |
6852 | } |
6853 |
|
6854 | // Check if the page linked to is on our site. |
6855 | $pos1 = strpos( $pagelinkedto, str_replace( array( 'http://www.', 'http://', 'https://www.', 'https://' ), '', get_option( 'home' ) ) ); |
6856 | if ( ! $pos1 ) { |
6857 | return $this->pingback_error( 0, __( 'Is there no link to us?' ) ); |