Toggle_Best_Answer::__construct()

Description #

The class constructor.

Set requests and nonce key.

Source #

File: ajax/toggle-best-answer.php

	protected function __construct() {
		$this->req( 'answer_id', ap_sanitize_unslash( 'answer_id', 'r' ) );
		$this->nonce_key = 'select-answer-' . $this->req( 'answer_id' );

		// Call parent.
		parent::__construct();
	}

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