public_html/wp-content/plugins/js_composer/include/autoload/vc-settings-presets.php
/**
 * Unmark current default preset as default
 *
 * Include freshly rendered html in response
 *
 * Required _POST params:
 * - shortcode_name string
 *
 * @since 4.7
 */
Unmark current default preset as default
Include freshly rendered html in response

Required _POST params:
- shortcode_name string


Unmark current default preset as default Include freshly rendered html in response Required _POST params : - shortcode_name string
function vc_action_restore_default_settings_preset() {
	vc_include_settings_preset_class();
	$shortcode_name = vc_post_param( 'shortcode_name' );
	$status = Vc_Settings_Preset::setAsDefaultSettingsPreset( null, $shortcode_name );
	$response = array(
		'success' => $status,
		'html' => Vc_Settings_Preset::getRenderedSettingsPresetPopup( $shortcode_name )
	);
	wp_send_json( $response );
}
function vc_action_restore_default_settings_preset ( ) { vc_include_settings_preset_class ( ) ; $ shortcode_name = vc_post_param ( 'shortcode_name' ) ; $ status = Vc_Settings_Preset :: setAsDefaultSettingsPreset ( null , $ shortcode_name ) ; $ response = array ( 'success' => $ status , 'html' => Vc_Settings_Preset :: getRenderedSettingsPresetPopup ( $ shortcode_name ) ) ; wp_send_json ( $ response ) ; }
Unmark current default preset as default
 Include freshly rendered html in response
Unmark current default preset as default Include freshly rendered html in response