public_html/wp-content/plugins/js_composer/include/autoload/vc-settings-presets.php
/**
 * Delete specific settings preset
 *
 * Include freshly rendered html in response
 *
 * Required _POST params:
 * - shortcode_name string
 * - id int
 *
 * @since 4.7
 */
Delete specific settings preset
Include freshly rendered html in response

Required _POST params:
- shortcode_name string
- id int


Delete specific settings preset Include freshly rendered html in response Required _POST params : - shortcode_name string - id int
function vc_action_delete_settings_preset() {
	vc_include_settings_preset_class();
	$default = get_post_meta( vc_post_param( 'id' ), '_vc_default', true );
	$status = Vc_Settings_Preset::deleteSettingsPreset(
		vc_post_param( 'id' )
	);
	$response = array(
		'success' => $status,
		'default' => $default,
		'html' => Vc_Settings_Preset::getRenderedSettingsPresetPopup( vc_post_param( 'shortcode_name' ) )
	);
	wp_send_json( $response );
}
function vc_action_delete_settings_preset ( ) { vc_include_settings_preset_class ( ) ; $ default = get_post_meta ( vc_post_param ( 'id' ) , '_vc_default' , true ) ; $ status = Vc_Settings_Preset :: deleteSettingsPreset ( vc_post_param ( 'id' ) ) ; $ response = array ( 'success' => $ status , 'default' => $ default , 'html' => Vc_Settings_Preset :: getRenderedSettingsPresetPopup ( vc_post_param ( 'shortcode_name' ) ) ) ; wp_send_json ( $ response ) ; }
Delete specific settings preset
 Include freshly rendered html in response
Delete specific settings preset Include freshly rendered html in response