wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-metabox-core.php
/**
	 * Save color and gradient swatches
	 * @since 4.5
	 */
Save color and gradient swatches
@since 4.5
Save color and gradient swatches @since 4 . 5
function themify_save_colors() {
		check_ajax_referer( 'ajax-nonce', 'tb_load_nonce' );
		$type = $_POST['type'];
		$colors = !empty( $_POST['colors'] ) && is_array($_POST['colors']) ? serialize( $_POST['colors'] ) : serialize( array() );
		$_key='themify_saved_' . $type;
		delete_option($_key);
		add_option($_key,$colors, '', 'no' );
		$response['status'] = 'success';
		wp_send_json( $response );
		wp_die();
	}
function themify_save_colors ( ) { check_ajax_referer ( 'ajax-nonce' , 'tb_load_nonce' ) ; $ type = $ _POST [ 'type' ] ; $ colors = ! empty ( $ _POST [ 'colors' ] ) && is_array ( $ _POST [ 'colors' ] ) ? serialize ( $ _POST [ 'colors' ] ) : serialize ( array ( ) ) ; $ _key = 'themify_saved_' . $ type ; delete_option ( $ _key ) ; add_option ( $ _key , $ colors , '' , 'no' ) ; $ response [ 'status' ] = 'success' ; wp_send_json ( $ response ) ; wp_die ( ) ; }
Save color and gradient swatches
 @since 4.5
Save color and gradient swatches @since 4 . 5