refactor
This commit is contained in:
@@ -503,17 +503,6 @@ function twentytwentyfour_test1_assets() {
|
||||
)
|
||||
);
|
||||
|
||||
if ( class_exists( 'WooCommerce' ) ) {
|
||||
wp_localize_script(
|
||||
'twentytwentyfour-test1-script',
|
||||
'test1WooCommerce',
|
||||
array(
|
||||
'addToCartUrl' => WC_AJAX::get_endpoint( 'add_to_cart' ),
|
||||
'cartUrl' => wc_get_cart_url(),
|
||||
'checkoutUrl' => wc_get_checkout_url(),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ( is_page( 'faq' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user