This commit is contained in:
2026-04-27 01:01:10 +02:00
parent 100689450b
commit f3b5be285f
29 changed files with 2292 additions and 37 deletions

View File

@@ -104,10 +104,10 @@ return 'Rezerwuj miejsce';
// Edit Archive Pages Add to Cart Buttons
add_filter( 'woocommerce_product_add_to_cart_text', 'bbloomer_archive_custom_cart_button_text' );
function bbloomer_archive_custom_cart_button_text() {
global $product;
if ( has_term( array('webinar', 'ksiazka'), 'product_cat', $product->ID ) ) {
global $product;
if ( has_term( array('webinar', 'ksiazka'), 'product_cat', $product->ID ) ) {
return 'Kup teraz!';
} else {
return 'Rezerwuj miejsce!';