pre_ping хук-событиеWP 2.0.0

Fires just before pinging back links found in a post.

Использование

add_action( 'pre_ping', 'wp_kama_pre_ping_action', 10, 3 );

/**
 * Function for `pre_ping` action-hook.
 * 
 * @param string[] $post_links Array of link URLs to be checked (passed by reference).
 * @param string[] $pung       Array of link URLs already pinged (passed by reference).
 * @param int      $post_id    The post ID.
 *
 * @return void
 */
function wp_kama_pre_ping_action( $post_links, $pung, $post_id ){

	// action...
}
$post_links(string[])
Array of link URLs to be checked (passed by reference).
$pung(string[])
Array of link URLs already pinged (passed by reference).
$post_id(int)
The post ID.

Список изменений

С версии 2.0.0 Введена.

Где вызывается хук

pingback()
pre_ping
wp-includes/comment.php 3108
do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) );

Где используется хук в WordPress

Использование не найдено.