pre_ping
Fires just before pinging back links found in a post.
Description
Parameters (1)
- 0. $array (array) =>
array( &$post_links, &$pung, $post->ID )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'pre_ping', $array );
- The following example is for adding a hook callback.
- // define the pre_ping callback
- function action_pre_ping( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'pre_ping', 'action_pre_ping', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'pre_ping', 'action_pre_ping', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/comment.php
- do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post->ID ) );