pre_ping
Fires just before pinging back links found in a post.
Usage
add_action( 'pre_ping', 'wp_kama_pre_ping_action' ); /** * Function for `pre_ping` action-hook. * * @param string[] $post_links Array of link URLs to be checked (passed by reference). * * @return void */ function wp_kama_pre_ping_action( $post_links ){ // action... }
- $post_links(string[])
- Array of link URLs to be checked (passed by reference).
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
pre_ping
wp-includes/comment.php 3110
do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) );