public_html/wp-content/plugins/js_composer/include/autoload/vc-settings-presets.php
/**
 * Save settings preset for specific shortcode
 *
 * Include freshly rendered html in response
 *
 * Required _POST params:
 * - shortcode_name string
 * - title string
 * - data string params in json
 * - is_default
 *
 * @since 4.7
 */
Save settings preset for specific shortcode
Include freshly rendered html in response

Required _POST params:
- shortcode_name string
- title string
- data string params in json
- is_default


Save settings preset for specific shortcode Include freshly rendered html in response Required _POST params : - shortcode_name string - title string - data string params in json - is_default
function vc_action_save_settings_preset() {
	vc_include_settings_preset_class();
	$id = Vc_Settings_Preset::saveSettingsPreset(
		vc_post_param( 'shortcode_name' ),
		vc_post_param( 'title' ),
		vc_post_param( 'data' ),
		vc_post_param( 'is_default' )
	);
	$response = array(
		'success' => (bool) $id,
		'html' => Vc_Settings_Preset::getRenderedSettingsPresetPopup( vc_post_param( 'shortcode_name' ) ),
		'id' => $id
	);
	wp_send_json( $response );
}
function vc_action_save_settings_preset ( ) { vc_include_settings_preset_class ( ) ; $ id = Vc_Settings_Preset :: saveSettingsPreset ( vc_post_param ( 'shortcode_name' ) , vc_post_param ( 'title' ) , vc_post_param ( 'data' ) , vc_post_param ( 'is_default' ) ) ; $ response = array ( 'success' => ( bool ) $ id , 'html' => Vc_Settings_Preset :: getRenderedSettingsPresetPopup ( vc_post_param ( 'shortcode_name' ) ) , 'id' => $ id ) ; wp_send_json ( $ response ) ; }
Save settings preset for specific shortcode
 Include freshly rendered html in response
Save settings preset for specific shortcode Include freshly rendered html in response