sanitize_trackback_urls filter-hookWP 3.4.0

Filters a list of trackback URLs following sanitization.

The string returned here consists of a space or carriage return-delimited list of trackback URLs.

Usage

add_filter( 'sanitize_trackback_urls', 'wp_kama_sanitize_trackback_urls_filter', 10, 2 );

/**
 * Function for `sanitize_trackback_urls` filter-hook.
 * 
 * @param string $urls_to_ping Sanitized space or carriage return separated URLs.
 * @param string $to_ping      Space or carriage return separated URLs before sanitization.
 *
 * @return string
 */
function wp_kama_sanitize_trackback_urls_filter( $urls_to_ping, $to_ping ){

	// filter...
	return $urls_to_ping;
}
$urls_to_ping(string)
Sanitized space or carriage return separated URLs.
$to_ping(string)
Space or carriage return separated URLs before sanitization.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

sanitize_trackback_urls()
sanitize_trackback_urls
wp-includes/formatting.php 5595
return apply_filters( 'sanitize_trackback_urls', $urls_to_ping, $to_ping );

Where the hook is used in WordPress

Usage not found.