pre_remote_source

pre_remote_source

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_remote_source') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 6989
    		 *
    		 * @param string $remote_source Response source for the page linked from.
    		 * @param string $pagelinkedto  URL of the page linked to.
    		 */
    		$remote_source = apply_filters( 'pre_remote_source', $remote_source, $pagelinkedto );
    
    		// Work around bug in strip_tags():
    		$remote_source = str_replace( '<!DOC', '<DOC', $remote_source );
    		$remote_source = preg_replace( '/&#91;\r\n\t &#93;+/', ' ', $remote_source ); // normalize spaces
    		$remote_source = preg_replace( '/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)&#91;^>]*>/', "\n\n", $remote_source );
    
    

See this hook used in plugins: