function __construct() { //Check Role if (!current_user_can('edit_pages')) { return; } parent::__construct(); $this->init(); }