add_ping
Filters the new ping URL to add for the given post.
Использование
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(строка)
- New ping URL to add.
Список изменений
| С версии 2.0.0 | Введена. |
Где вызывается хук
add_ping
wp-includes/post.php 6059
$new = apply_filters( 'add_ping', $new );