Description #

The class constructor.

Set requests and nonce key.

Source #

File: ajax/comment-delete.php

	protected function __construct() {
		$comment_id      = ap_sanitize_unslash( 'comment_id', 'r' );
		$this->nonce_key = 'delete_comment_' . $comment_id;

		$this->req( 'comment_id', $comment_id );

		// Call parent.

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Add your comment