get_to_ping
Filter HookDescription
Filters the list of URLs yet to ping for the given post.Hook Information
File Location |
wp-includes/post.php
View on GitHub
|
Hook Type | Filter |
Line Number | 5976 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$to_ping
|
List of URLs yet to ping. |
Usage Examples
Basic Usage
<?php
// Hook into get_to_ping
add_filter('get_to_ping', 'my_custom_filter', 10, 1);
function my_custom_filter($to_ping) {
// Your custom filtering logic here
return $to_ping;
}
Source Code Context
wp-includes/post.php:5976
- How this hook is used in WordPress core
<?php
5971 *
5972 * @since 2.0.0
5973 *
5974 * @param string[] $to_ping List of URLs yet to ping.
5975 */
5976 return apply_filters( 'get_to_ping', $to_ping );
5977 }
5978
5979 /**
5980 * Does trackbacks for a list of URLs.
5981 *
PHP Documentation
<?php
/**
* Filters the list of URLs yet to ping for the given post.
*
* @since 2.0.0
*
* @param string[] $to_ping List of URLs yet to ping.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/post.php
Related Hooks
Related hooks will be displayed here in future updates.