wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-global-styles.php
/**
	 * Handle Ajax request for restoring a Global Style
	 */
Handle Ajax request for restoring a Global Style
Handle Ajax request for restoring a Global Style
public static function restore_global_style_ajaxify() {
		check_ajax_referer( 'tb_load_nonce', 'nonce' );
		$response = array();
		if ( isset( $_POST['id'] ) ) {
			$restore_post = self::restore_global_style( $_POST['id'] );
			if ( false === $restore_post || null === $restore_post ) {
				$response['status'] = 'failed';
				$response['msg'] = __( 'Something went wrong', 'themify' );
			} else {
				$response['status'] = 'success';
			}
		}
		wp_send_json( $response );
	}
public static function restore_global_style_ajaxify ( ) { check_ajax_referer ( 'tb_load_nonce' , 'nonce' ) ; $ response = array ( ) ; if ( isset ( $ _POST [ 'id' ] ) ) { $ restore_post = self :: restore_global_style ( $ _POST [ 'id' ] ) ; if ( false === $ restore_post || null === $ restore_post ) { $ response [ 'status' ] = 'failed' ; $ response [ 'msg' ] = __ ( 'Something went wrong' , 'themify' ) ; } else { $ response [ 'status' ] = 'success' ; } } wp_send_json ( $ response ) ; }
Handle Ajax request for restoring a Global Style
Handle Ajax request for restoring a Global Style