Give Subscription on Purchase
This snippet will provide customers with one year of access to subscription content when they make…
Change Number of Downloads in Bundle Select
When editing a bundle, the select field for choosing the downloads to include only displays a…
Change the sold by link label to vendor's name
Change the sold by link label to vendor's name
Use Billing Address in Order Exports
By default the export order feature for the vendor dashboard users the customers shipping address. This…
Add Vendor Ratings / Feedback to Product Page
add_action('woocommerce_before_add_to_cart_form','vendor_feedback_product_page'); function vendor_feedback_product_page() { $vendor_id = get_the_author_meta('ID'); $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) ); if (…
Resetting the Vendor & Pending Vendor Roles
add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2); function redo_roles() { remove_role( 'pending_vendor' ); add_role( 'pending_vendor', __( 'Pending Vendor', 'wcvendors'…
Fix 500 Internal Server Error
A .htaccess file is a key file in all PHP-based applications that controls your website’s configuration.…
WP Simple Pay: Add Customer Phone to Customer Metadata
Adds the "Telephone" customer field value to the Customer record's metadata. This value is normally only…
WP Simple Pay: Successful Payment Conversion Tracking
Execute a script the first and only time a payment confirmation is viewed.
Open External link to a new tab
This code snippet enhances a WordPress website by automatically opening external links in new tabs. When…
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…
AIOSEO - Increase SEO Analyzer TimeOut
This snippet will increase the Timeout limit set for the SEO Analysis feature on a site.
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…
WP Simple Pay: Remove Trailing Decimals
/** * @link https://library.wpcode.com/snippet/323j86jo/ */ add_filter( 'simpay_decimal_places', function() { return 0; } );