AnsPress_Hooks::comment_unapprove( array|object $comment )
Description #
Used to create an action when comment get unapproved.
Parameters #
- $commentarray | object (Required) Comment object.
Source #
File: includes/hooks.php
public static function comment_unapprove( $comment ) {
if ( 'anspress' === $comment->comment_type ) {
/**
* Action is triggered when a anspress comment is unpublished.
*
* @param object $comment Comment object.
* @since unknown
*/
do_action( 'ap_unpublish_comment', $comment );
}
}
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:434
Add your comment