public_html/wp-content/plugins/js_composer/include/autoload/vc-settings-presets.php
/**
 * Get data for specific settings preset
 *
 * Required _POST params:
 * - id int
 *
 * @since 4.7
 */
Get data for specific settings preset
Required _POST params:
- id int


Get data for specific settings preset Required _POST params : - id int
function vc_action_get_settings_preset() {
	vc_include_settings_preset_class();
	$data = Vc_Settings_Preset::getSettingsPreset(
		vc_post_param( 'id' ), true
	);
	if ( false !== $data ) {
		$response = array(
			'success' => true,
			'data' => $data
		);
	} else {
		$response = array(
			'success' => false
		);
	}
	wp_send_json( $response );
}
function vc_action_get_settings_preset ( ) { vc_include_settings_preset_class ( ) ; $ data = Vc_Settings_Preset :: getSettingsPreset ( vc_post_param ( 'id' ) , true ) ; if ( false !== $ data ) { $ response = array ( 'success' => true , 'data' => $ data ) ; } else { $ response = array ( 'success' => false ) ; } wp_send_json ( $ response ) ; }
Get data for specific settings preset
 Required _POST params:
 - id int
Get data for specific settings preset Required _POST params : - id int