Ajax::verify_permission()
Description #
Verify permission of a user.
By default this method need to override from child class. If not overridden then ajax will always fail at this point.
Source #
File: classes/ajax.php
protected function verify_permission() { $this->set_fail(); $this->snackbar( __( 'You don\'t have enough permissions to do this action.', 'anspress-question-answer' ) ); $this->send(); }
Expand full source code Collapse full source code View on GitHub: classes/ajax.php:142
Add your comment