RewardsWP — My Account Rewards Tab

/** * Plugin Name: RewardsWP — My Account Rewards Tab * Description: Adds a “My Rewards” tab to WooCommerce My Account that opens the rewards widget. * Version: 1.0.0 * Author: AffiliateWP */ if ( ! defined( ‘ABSPATH’ ) )…Continue reading

Remove the coupon section for orders that did not use any coupon.

add_action( ‘woocommerce_email_before_order_table’, ‘conditionally_remove_coupon_section_from_email’, 5, 4 ); function conditionally_remove_coupon_section_from_email( $order, $sent_to_admin, $plain_text, $email ) { if ( ! $order instanceof WC_Order ) { return; } // Get applied coupons $coupons = $order->get_coupon_codes(); // If NO coupons were used, remove the coupon…Continue reading

Membership Details Table Override

/** * Membership Details Table Override * * Child Theme: Storefront-Child-Theme * WC Vendors Membership Template * * Hides certain rows for free plans while keeping table formatting. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; // Exit…Continue reading

[No longer required?] Fix Missing Stripe Credit Card Fields Padding

function deletetransientsfromwc() { delete_transient( ‘wc_stripe_appearance’ ); delete_transient( ‘wc_stripe_blocks_appearance’ ); } add_action( ‘template_redirect’, ‘deletetransientsfromwc’ ); add_filter( ‘wc_stripe_upe_params’, function ( $stripe_params ) { $stripe_params[‘appearance’] = (object) [ ‘rules’ => (object) [ ‘.Input’ => (object) [ ‘padding’ => ’10px’, ] ], ]; return…Continue reading

VDX Optimizer (copy)

// VDX Optimizer – SEO, Social Media & WooCommerce // SEO Meta Tags add_action(‘wp_head’, function() { $desc = ‘Descoperă chipsurile de măr VDX – gustări sănătoase, 100% naturale, făcute în Moldova.’; echo ‘‘; echo ‘‘; echo ‘‘; echo ‘‘; echo…Continue reading

VDX Optimizer

// VDX Optimizer – SEO, Social Media & WooCommerce // SEO Meta Tags add_action(‘wp_head’, function() { $desc = ‘Descoperă chipsurile de măr VDX – gustări sănătoase, 100% naturale, făcute în Moldova.’; echo ‘‘; echo ‘‘; echo ‘‘; echo ‘‘; echo…Continue reading