public function ajax_customizer_reset()
{
if (!$this->wp_customize->is_preview()) {
wp_send_json_error('not_preview');
}
if (!check_ajax_referer('customizer-reset', 'nonce', false)) {
wp_send_json_error('invalid_nonce');
}
$this->reset_customizer();
wp_send_json_success();
}