trackback_post
Action HookDescription
Fires after a trackback is added to a post.Hook Information
File Location |
wp-trackback.php
View on GitHub
|
Hook Type | Action |
Line Number | 175 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$trackback_id
|
Trackback ID. |
Usage Examples
Basic Usage
<?php
// Hook into trackback_post
add_action('trackback_post', 'my_custom_function', 10, 1);
function my_custom_function($trackback_id) {
// Your custom code here
}
Source Code Context
wp-trackback.php:175
- How this hook is used in WordPress core
<?php
170 *
171 * @since 1.2.0
172 *
173 * @param int $trackback_id Trackback ID.
174 */
175 do_action( 'trackback_post', $trackback_id );
176
177 trackback_response( 0 );
178 }
PHP Documentation
<?php
/**
* Fires after a trackback is added to a post.
*
* @since 1.2.0
*
* @param int $trackback_id Trackback ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-trackback.php
Related Hooks
Related hooks will be displayed here in future updates.