Untitled Snippet
function vqs_leaderboard_assets() { wp_enqueue_style( 'vqs-leaderboard-css', get_stylesheet_directory_uri() . '/vqs-leaderboard.css', [], '1.0' ); wp_enqueue_script( 'vqs-leaderboard-js', get_stylesheet_directory_uri() . '/vqs-leaderboard.js',…
Show Terms By Default
Show the terms of agreement open on the checkout page by default
Prevent Wholesale Customer to Add Product to the Cart If The Product is Low on Stock
// Prevent wholesale customer to add to cart if the product is low on stock add_filter('woocommerce_is_purchasable',…
Paystack Split Payments Integration with WC Vendors — Creating the Split Configuration
public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach…
test
test
Retroactive Lifetime Licenses
Mark all existing licenses for an EDD product as lifetime licenses.
Vendor Canonical Links
Makes the vendor canonical links go to yoursite/vendor/vendor-name instead of yoursite/vendor.
Disable Geolocation Current Location if the page URL contains Prefill by URL parameters targeting an address field
When "Current Location" is enabled in WPForms > Settings > Geolocation, the geolocation JS overwrites address…
Force localized currency for product feeds
This allows you to change the ISO 4217 for all the product feeds
WWLC - Default Wholesale Leads list to sort by registration date (newest first)
1. Navigate to your site: Go to your WP Admin dashboard. 2. Apply the snippet: Paste…
ACFW - Invalidate coupons for products with certain custom meta data
add_filter( 'woocommerce_coupon_is_valid', function( $valid, $coupon, $discount ) { $excluded_channels = $coupon->get_meta( '_excluded_og_channels', true ); if (…