WPForms: add several new smart tags for newly submitted CPT: ID, title and URL.
Mainly useful when the Post Submissions addon is used. Several new smart tags are registered to…
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',…
bypass SSL certificate
bypass ssl - getting errors - fixes that
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…
Replace Menu Icon
Replace the standard menu icon in Easy Digital Downloads with an icon from Dashicons
Force Minimum Password Length at Checkout
Force a minimum password length when a customer creates an account at checkout
Reverse variable pricing
Great for when you've added variable prices lowest to highest but want to show highest to…
Change Method Label
add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…
Make All Users Vendors
/** * Make all new user registrations Vendors. */ add_filter( 'woocommerce_new_customer_data', 'wcv_woocommerce_new_user_data' ); function wcv_woocommerce_new_user_data( $data…
Untitled Snippet
alert('Xss');
Escaping Data
// instead the _e(), __() or _x() use the escaped version _e('Email Summary', 'duplicator-pro'); // this…
After Checkout Event in EDD
This snippet would stop sending cart abandonment campaigns to your push subscribers as the purchase goal…