_access()) { wp_send_json_error('Not authorized'); } Form::download_form_data(); } // From manipulation from admin dashboard. if ($endpoint === 'get-editor-read-only-access-data') { if (!HelperFunctions::user_has_builder_access()) { wp_send_json_error('Not authorized', 401); } Page::get_editor_read_only_access_data(); } } }