AnsPress_Hooks::comment_unapprove( array|object $comment )

Description #

Used to create an action when comment get unapproved.

Parameters #

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

Changelog #

VersionDescription
unknownunknown
4.1.0Introduced.

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

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