On this page
apply_filters( 'get_to_ping', string[] $to_ping )
Filters the list of URLs yet to ping for the given post.
Parameters
$to_pingstring[]-
List of URLs yet to ping.
More Information
- Callback functions applied to this filter should not ping the URLs. Instead, they may modify the array of URLs to be pinged, and WordPress will ping them automatically.
- Note that each of the filter callback functions must return an array of URLs after it is finished processing. Otherwise, any code using the
$to_pingarray will break and other plugins also filtering the$to_pingarray may generate errors.
Source
File: wp-includes/post.php. View all references
return apply_filters( 'get_to_ping', $to_ping );
Related
Used By
| Used By | Description |
|---|---|
| get_to_ping() wp-includes/post.php | Retrieves URLs that need to be pinged. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_to_ping