This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Adds the <img> tag to allowed tags in the Description field. | |
* | |
* Requires Table Rate Shipping for WooCommerce 4.2+ | |
*/ | |
add_filter( 'betrs_desc_allowed_tags', 'add_new_allowed_tags_betrs', 10, 1 ); | |
function add_new_allowed_tags_betrs( $allowedtags ) { | |
$allowedtags['img'] = array( | |
'alt' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_ajax_simple_vies_check', 'simple_vies_check' ); | |
add_action( 'wp_ajax_nopriv_simple_vies_check', 'simple_vies_check' ); | |
if ( ! function_exists( 'simple_vies_check' ) ) { | |
/** | |
* AJAX VIES check function for WooCommerce checkout | |
* | |
* @since 1.0.0 |