AnsPress_Hooks::comment_trash( integer $comment_id )
Description #
Used to create an action when comment get trashed.
Parameters #
- $comment_idinteger (Required) Comment ID.
Source #
File: includes/hooks.php
public static function comment_trash( $comment_id ) { $comment = get_comment( $comment_id ); if ( 'anspress' === $comment->comment_type ) { /** This action is documented in includes/hooks.php */ do_action( 'ap_unpublish_comment', $comment ); } }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:453
Add your comment