/** * AJAX callback to download the settings in a JSON encoded text file. * * @access private * @since 8.3 * @static */ public static function downloadSettings() { check_ajax_referer('export_settings'); if (!current_user_can('manage_options')) { wp_send_json(__('You do not have sufficient permissions to export the settings.', 'connections')); } cnSettingsAPI::download(); }