AnsPress_Hooks::comment_approve( array|object $comment )

Description #

Used to create an action when comment get approved.

Parameters #

  • $comment
    array | object (Required) Comment object.

Changelog #

VersionDescription
unknownunknown
4.1.0Introduced.

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 );
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment