|
|
|
@ -618,9 +618,6 @@ register_sidebar( array( |
|
|
|
|
) ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Define encryption secret key |
|
|
|
|
define('SECRET', 'fT54ehYtt87@q1A'); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Email Validation |
|
|
|
|
* Validates the format of the provided email via AJAX. |
|
|
|
@ -1109,18 +1106,6 @@ function remove_view_cart_button_js() { |
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_filter( 'script_loader_tag', function ( $tag, $handle, $src ) { |
|
|
|
|
$module_handles = [ |
|
|
|
|
'shop-single-product-tabs', // для tabs.js |
|
|
|
|
'shop-single-product-toggle', // для toggle.js |
|
|
|
|
]; |
|
|
|
|
if ( in_array( $handle, $module_handles ) ) { |
|
|
|
|
return '<script type="module" src="' . esc_url( $src ) . '"></script>'; |
|
|
|
|
} |
|
|
|
|
return $tag; |
|
|
|
|
}, 10, 3 ); |
|
|
|
|
|
|
|
|
|
// Для кнопки "Применить фильтр" |
|
|
|
|
add_filter('wbw_filter_submit_button_text', 'change_wbw_filter_button_text'); |
|
|
|
|
function change_wbw_filter_button_text($text) { |
|
|
|
|