AnsPress_Hooks::comment_trash( integer $comment_id )

Description #

Used to create an action when comment get trashed.

Parameters #

  • $comment_id
    integer (Required) Comment ID.

Changelog #

VersionDescription
unknownunknown
4.1.0Introduced.

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

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