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…

Detect Orphaned Content in WordPress Admin

Identify published posts and pages that are not linked internally from other published content on your…

Untitled Snippet

<meta name="google-adsense-account" content="ca-pub-9481928342352849">

Custom fields to vendor settings page

add_action('wcvendors_settings_after_paypal', 'pv_add_custom_merchant_id_field'); function pv_add_custom_merchant_id_field() { ?>

Allow WooCommerce Shop Managers to manage vendors

/* Lets Shop Managers edit users with these user roles */ function wcv_allow_shop_manager_role_edit_capabilities( $roles ) {…

login redirect changed from default my account page to home page

/** * WooCommerce My Account Page login Redirect */ add_action( 'wp_login', 'owp_redirect_after_logout' ); function owp_redirect_after_logout() {…

Form action onSubmit

First Name Email Address

Search Only Category

Limit the search to selected category only.

1 … 133 134 135 136 137 … 244