wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-global-styles.php
/**
	 * Handle Ajax request for add new Global Style
	 *
	 * @access static
	 */
Handle Ajax request for add new Global Style
@access static
Handle Ajax request for add new Global Style @access static
static function save_custom_global_style_ajaxify() {
		check_ajax_referer( 'tb_load_nonce', 'nonce' );
		$data = $response = array();
		if ( isset( $_POST['form_data'] ) ) {
			parse_str( $_POST['form_data'], $data );
			$insert_post = self::add_new( $data );
			if ( false === $insert_post ) {
				$response['status'] = 'failed';
				$response['msg'] = __( 'Something went wrong', 'themify' );
			} else {
				$response['status'] = 'success';
				$response['url'] = $insert_post['url'] . '#builder_active';
			}
		}
		wp_send_json( $response );
	}
static function save_custom_global_style_ajaxify ( ) { check_ajax_referer ( 'tb_load_nonce' , 'nonce' ) ; $ data = $ response = array ( ) ; if ( isset ( $ _POST [ 'form_data' ] ) ) { parse_str ( $ _POST [ 'form_data' ] , $ data ) ; $ insert_post = self :: add_new ( $ data ) ; if ( false === $ insert_post ) { $ response [ 'status' ] = 'failed' ; $ response [ 'msg' ] = __ ( 'Something went wrong' , 'themify' ) ; } else { $ response [ 'status' ] = 'success' ; $ response [ 'url' ] = $ insert_post [ 'url' ] . '#builder_active' ; } } wp_send_json ( $ response ) ; }
Handle Ajax request for add new Global Style
 @access static
Handle Ajax request for add new Global Style @access static