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(); }
Expand full source code Collapse full source code View on GitHub: ajax/toggle-best-answer.php:39
Add your comment