function custom_remove_ingredient_image_from_gallery( $gallery_image_ids, $product ) { // Get the image ID stored in the custom meta key $image_id_to_remove = get_post_meta( $product->get_id(), ‘_product_ingredients_image_id’, true ); // Check if an image ID is set and is in the gallery, then remove it…Continue reading
add_action( ‘woocommerce_after_add_to_cart_form’, ‘QL_add_text_under_add_to_cart’ ); function QL_add_text_under_add_to_cart () { global $product; ?>Continue reading
add_filter( ‘woocommerce_product_add_to_cart_text’, ‘fmd_change_select_options_button_text’, 10, 2 ); if(!function_exists(“fmd_change_select_options_button_text”)) { function fmd_change_select_options_button_text( $label, $product ) { if ( $product->is_type( ‘variable’ ) ) { return ‘Comprar ahora’; } return $label; } }Continue reading