sanitize_trackback_urls
Filter HookDescription
Filters a list of trackback URLs following sanitization. The string returned here consists of a space or carriage return-delimited list of trackback URLs.Hook Information
File Location |
wp-includes/formatting.php
View on GitHub
|
Hook Type | Filter |
Line Number | 5759 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$urls_to_ping
|
Sanitized space or carriage return separated URLs. |
string
|
$to_ping
|
Space or carriage return separated URLs before sanitization. |
Usage Examples
Basic Usage
<?php
// Hook into sanitize_trackback_urls
add_filter('sanitize_trackback_urls', 'my_custom_filter', 10, 2);
function my_custom_filter($urls_to_ping, $to_ping) {
// Your custom filtering logic here
return $urls_to_ping;
}
Source Code Context
wp-includes/formatting.php:5759
- How this hook is used in WordPress core
<?php
5754 * @since 3.4.0
5755 *
5756 * @param string $urls_to_ping Sanitized space or carriage return separated URLs.
5757 * @param string $to_ping Space or carriage return separated URLs before sanitization.
5758 */
5759 return apply_filters( 'sanitize_trackback_urls', $urls_to_ping, $to_ping );
5760 }
5761
5762 /**
5763 * Adds slashes to a string or recursively adds slashes to strings within an array.
5764 *
PHP Documentation
<?php
/**
* Filters a list of trackback URLs following sanitization.
*
* The string returned here consists of a space or carriage return-delimited list
* of trackback URLs.
*
* @since 3.4.0
*
* @param string $urls_to_ping Sanitized space or carriage return separated URLs.
* @param string $to_ping Space or carriage return separated URLs before sanitization.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/formatting.php
Related Hooks
Related hooks will be displayed here in future updates.