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 |
---|---|
6776 |
|
6777 | /** |
6778 | * Filters the pingback remote source. |
6779 | * |
6780 | * @since 2.5.0 |
6781 | * |
6782 | * @param string $remote_source Response source for the page linked from. |
6783 | * @param string $pagelinkedto URL of the page linked to. |
6784 | */ |
6785 | $remote_source = apply_filters( 'pre_remote_source', $remote_source, $pagelinkedto ); |
6786 |
|
6787 | // Work around bug in strip_tags(): |
6788 | $remote_source = str_replace( '<!DOC', '<DOC', $remote_source ); |
6789 | $remote_source = preg_replace( '/[\r\n\t ]+/', ' ', $remote_source ); // normalize spaces |
6790 | $remote_source = preg_replace( '/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/', "\n\n", $remote_source ); |
6791 |
|
6792 | preg_match( '|<title>([^<]*?)</title>|is', $remote_source, $matchtitle ); |
6793 | $title = isset( $matchtitle[1] ) ? $matchtitle[1] : ''; |
6794 | if ( empty( $title ) ) { |