comment_on_trash action-hook . WP 2.9.0
Fires when a comment is attempted on a trashed post.
Usage
add_action( 'comment_on_trash', 'action_function_name_4849' ); function action_function_name_4849( $comment_post_ID ){ // action... }
- $comment_post_ID(int)
- Post ID.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
comment_on_trash
wp-includes/comment.php 3449
do_action( 'comment_on_trash', $comment_post_ID );