AnsPress_Hooks::comment_approve( array|object $comment )
Description #
Used to create an action when comment get approved.
Parameters #
- $commentarray | object (Required) Comment object.
Source #
File: includes/hooks.php
public static function comment_approve( $comment ) { if ( 'anspress' === $comment->comment_type ) { /** This action is documented in includes/hooks.php */ do_action( 'ap_publish_comment', $comment ); } }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:420
Add your comment