run on payment page
if payment page, send email
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',…
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…
Pre-approval Emails
Email the admin and customer when a pre-approval payment has been made.
test
test
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…
Let Customers Select Their User Role From A Custom Field In Wholesale Lead Capture
Create a custom field with the user role selection, make sure that the values match your…
Remove "mail.readwrite" Scope for the Outlook Mailer (copy)
This snippet removes the `mail.readwrite` scope from the WP Mail SMTP plugin Outlook provider.
BOGO Coupons to refer to original subtotal
When a BOGO coupon has a minimum spend (Usage Restriction) configured, applying the coupon can incorrectly…
Remove Method label
add_filter( 'woocommerce_cart_shipping_method_full_label', 'remove_shipping_method_title', 10, 2 ); function remove_shipping_method_title( $label, $method ){ $new_label = ''; if (…