/** * 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
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 * * 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
public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach ( $vendors_due as $vendor_id => $products ) { $_vendor_account = get_user_meta( $vendor_id, ‘_paystack_sub_account_code’, true ); $sub_accounts[] = array( ‘subaccount’ => $_vendor_account, ‘share’ => $calculated_share,…Continue reading
function wpo_ips_semaphore_lock_cleanup_interval() { return 7 * DAY_IN_SECONDS; // Modify the interval here. } add_filter( ‘wpo_ips_semaphore_lock_cleanup_interval’, ‘wpo_ips_semaphore_lock_cleanup_interval’ );Continue reading
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
if ( ! function_exists( ‘WC’ ) ) { return; } function rd_wrap_header_image_with_link( $message ) { if ( ! is_string( $message ) ) { return $message; } $home = home_url( ‘/’ ); // Support both normal HTML and quoted-printable HTML. $markers…Continue reading
// 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 – 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