pingback_post
Action HookDescription
Fires after a post pingback has been sent.Hook Information
File Location |
wp-includes/class-wp-xmlrpc-server.php
View on GitHub
|
Hook Type | Action |
Line Number | 7152 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$comment_id
|
Comment ID. |
Usage Examples
Basic Usage
<?php
// Hook into pingback_post
add_action('pingback_post', 'my_custom_function', 10, 1);
function my_custom_function($comment_id) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-xmlrpc-server.php:7152
- How this hook is used in WordPress core
<?php
7147 *
7148 * @since 0.71
7149 *
7150 * @param int $comment_id Comment ID.
7151 */
7152 do_action( 'pingback_post', $comment_id );
7153
7154 /* translators: 1: URL of the page linked from, 2: URL of the page linked to. */
7155 return sprintf( __( 'Pingback from %1$s to %2$s registered. Keep the web talking! :-)' ), $pagelinkedfrom, $pagelinkedto );
7156 }
7157
PHP Documentation
<?php
/**
* Fires after a post pingback has been sent.
*
* @since 0.71
*
* @param int $comment_id Comment ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks
Related hooks will be displayed here in future updates.