Maks | refactor: удалил пустой js и кусок бесполезный из functions.php

dev_10_refactoring
parent 85ef904ad5
commit 55e3b7a5f3
  1. 15
      wp-content/themes/cosmopet/functions.php
  2. 0
      wp-content/themes/cosmopet/modules/header/assets/js/core.js

@ -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) {

Loading…
Cancel
Save