WWOF v3: Force "View Cart" link in the success side-popup to open in the same tab

/** * WWOF v3: Force "View Cart" link in the success side-popup to open in the…

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.

Remove Gift Aid "Title" Field From Donation Forms

add_filter( 'charitable_default_donation_fields', function( $fields ) { if ( isset( $fields['title'] ) ) { // Remove from…

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…

Set the ranges for Calendar View | Display Eventbrite Events

The following code snippet filters the valid ranges for the next/prev keys of the calendar views…

WordPress Content Filter: Removing Tags for Enhanced Display Control

The purpose of this code snippet is to filter out tags and their contents from the…

create_folder_and_upload_file

Creating a folder directly inside the WordPress Media Library through code requires understanding that the WordPress…

1 115 116 117 118 119 220