// Add store credit info to WooCommerce new order email notification // Store credits as coupon (before tax). $coupons = $order->get_coupons(); foreach ( $coupons as $coupon ) { if ( strtolower( $coupon->get_code() ) === ‘store credit’ ) { $sc_amount =…Continue reading
if ( ! function_exists( ‘wcvendors_show_vendor_policies’ ) ) { /** * Show WC Vendors vendor policies on the vendor store page */ function wcvendors_show_vendor_policies() { if ( ! is_wcv_pro_active() ) { return; } if ( ! WCV_Vendors::is_vendor_page() ) { return; }…Continue reading
/** * Force downloadable checkbox to be checked using MutationObserver */ function force_downloadable_checkbox_checked() { ?>Continue reading
.woocommerce-loop-product__title { min-height: 92px; }Continue reading
add_filter( ‘et_grab_image_setting’, ‘prefix_disable_image_setting_on_checkout’, 100 ); /** * Disable the Divi image setting on checkout. * * @param bool $setting * @return bool */ function prefix_disable_image_setting_on_checkout( $setting ) { return edd_is_checkout() ? false : $setting; }Continue reading
add_action( ‘pre_get_posts’, ‘softcomplexmusic_custom_search_filter’ ); function softcomplexmusic_custom_search_filter( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_search ) { $tax_query = []; if ( !empty($_GET[‘genre’]) ) { $tax_query[] = array( ‘taxonomy’ => ‘genre’, // Ensure this matches your site’s taxonomy slug…Continue reading
add_filter( ‘edd_gateway_supports’, ‘prefix_maybe_add_mixed_cart_support’, 999, 2 ); /** * Allow Stripe to support mixed carts. * Requires EDD 3.2.7. */ function prefix_maybe_add_mixed_cart_support( $supports, $gateway ) { if ( ‘stripe’ === $gateway ) { $supports[] = ‘mixed_cart’; } return $supports; }Continue reading