Allow Subscriptions Product on BOGO and Add Product Search Field
add_filter( 'acfw_product_search_allowed_types' , 'acfw_search_add_support_for_subscription_products' ); function acfw_search_add_support_for_subscription_products( $product_types ) { $product_types[] = 'subscription'; $product_types[] = 'variable-subscription';…
Remove the coupon section for orders that did not use any coupon.
add_action( 'woocommerce_email_before_order_table', 'conditionally_remove_coupon_section_from_email', 5, 4 ); function conditionally_remove_coupon_section_from_email( $order, $sent_to_admin, $plain_text, $email ) { if (…
Sample Email Template Tag
This is an example of how to register a new email template tag for EDD.
Untitled Snippet
PIPAS — Biennale de Photographie Genève PIPAS À propos Pratique 24 22 PIPAS Biennale de Photographie…
Disallow Store Credit When There Is an Active Coupon in the Cart
- When you apply coupon first, once the cart refreshes, the Store Credit field will be…
Restrict Coupons by Shipping Methods
To find your exact shipping method IDs, you can use either of these quick methods: 1.…
Untitled Snippet
Connect to site google
Code for Call Tracking
In order to track click to calls.
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'…
Disable Password Reset
For smaller sites where password resets can be managed manually, disabling automatic user password reset adds…
Accessibility fix for elementor Video playlist widget touch targets do not have sufficient size or spacing
touch targets do not have sufficient size or spacing
Remove Plugin Description
Reduce vertical scroll on the plugin page of admin dashboard.
Search Exclude Page
Search exclude all pages from search results without altering SEO.