ACFW - Fraud prevention on one-time coupons
add_action( 'woocommerce_checkout_process', function() { $coupon_code = 'your_coupon_code'; $billing_phone = wc_clean( wp_unslash( $_POST['billing_phone'] ?? '' ) );…
Add an image filed to the sign up form
// Add the image field to the signup form. add_action( 'wcv_form_input_after__wcv_store_name', 'wcv_image_uploader'); function wcv_image_uploader( ){ if…
Disable sold by link on checkout page
/** * Disable the sold by link on the checkout page */ add_filter('wcvendors_sold_by_link', 'wcv_disable_checkout_sold_by_link', 10, 2);…
custom CSS slide-in reposition
html body div#om-{{id}}.Campaign.CampaignType--slide { right: 40px !important; bottom: 100px !important; }
Remove Optional Script
Remove the optional "bilmur.min.js" script on both frontend and backend of Wordpress sites.
Replace Missing Thumbnail
Replaces missing thumbnail for posts with site logo.
HTML inside PHP
How to output HTML inside PHP.
Filter to send admin confirms | Quick Event Manager
add_filter('qem_registration_always_confirm_admin',,,1); This filter returns a Boolean to decide if an admin confirm is to be sent…
Disable Dynamic Template on the Homepage/Front-page
The following snippet can be used to remove the dynamic template assigned to all pages from…
Remove Unwanted Events | Display Eventbrite Events
Sometimes it is simplest to resort to code if you want to remove something from the…
Display both published and modified date
‹?php // Code from codewp.ai function codewp_display_dates( $content ) { if(get_post_type() != 'post') { return $content;…