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 |
---|---|
5786 |
|
5787 | /** |
5788 | * Filter the pingback remote source. |
5789 | * |
5790 | * @since 2.5.0 |
5791 | * |
5792 | * @param string $linea Response object for the page linked from. |
5793 | * @param string $pagelinkedto URL of the page linked to. |
5794 | */ |
5795 | $linea = apply_filters( 'pre_remote_source', $linea, $pagelinkedto ); |
5796 |
|
5797 | // Work around bug in strip_tags(): |
5798 | $linea = str_replace('<!DOC', '<DOC', $linea); |
5799 | $linea = preg_replace( '/[\r\n\t ]+/', ' ', $linea ); // normalize spaces |
5800 | $linea = preg_replace( "/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea ); |
5801 |
|
5802 | preg_match('|<title>([^<]*?)</title>|is', $linea, $matchtitle); |
5803 | $title = $matchtitle[1]; |
5804 | if ( empty( $title ) ) |