Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pingback_ping_source_uri

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
6796
6797           /**
6798            * Filters the pingback source URI.
6799            *
6800            * @since 3.6.0
6801            *
6802            * @param string $pagelinkedfrom URI of the page linked from.
6803            * @param string $pagelinkedto   URI of the page linked to.
6804            */
6805           $pagelinkedfrom = apply_filters( 'pingback_ping_source_uri', $pagelinkedfrom, $pagelinkedto );
6806
6807           if ( ! $pagelinkedfrom ) {
6808                return $this->pingback_error( 0, __( 'A valid URL was not provided.' ) );
6809           }
6810
6811           // Check if the page linked to is on our site.
6812           $pos1 = strpos( $pagelinkedto, str_replace( array( 'http://www.', 'http://', 'https://www.', 'https://' ), '', get_option( 'home' ) ) );
6813           if ( ! $pos1 ) {
6814                return $this->pingback_error( 0, __( 'Is there no link to us?' ) );