add_ping
Filters the new ping URL to add for the given post.
Usage
add_filter( 'add_ping', 'wp_kama_add_ping_filter' );
/**
* Function for `add_ping` filter-hook.
*
* @param string $new New ping URL to add.
*
* @return string
*/
function wp_kama_add_ping_filter( $new ){
// filter...
return $new;
}
- $new(string)
- New ping URL to add.
Changelog
| Since 2.0.0 | Introduced. |
Where the hook is called
add_ping
wp-includes/post.php 5963
$new = apply_filters( 'add_ping', $new );