- Would the owner really be ordering/cancelling oders that often? If not just trigger the notification on every cancellation.
- You could add a check against current user info and so long as its not the owners id – send the notification.
Maybe start with this:
Or use:
global $current_user;
Directly. It should not be too hard to check if user is logged in and NOT owner before sending notification but this depends on users logged in. Not sure of a way to check in instances when the users are not logged in other than perhaps dropping a cookie on specific IPs or checking the IP directly if the owner will only ever order from 1 location.
IMHO logged in checks would be the way to go.
Related Posts:
- Woocommerce add extra field to variation product
- single-product.php template not working for single products [closed]
- Get product link
- How to execute a javascript function just before saving a woocommerce post or a post?
- Change Meta Title seperator and remove on homepage
- Shortcode with product catgory counter
- WooCommerce Description and Short Description tags removal
- How do I add a “Cancel” button on the subscriptions listing page [closed]
- Woocommerce 2.5.5 get billing email from order instance
- Woocommerce products are not displayed on front-end . No products were found matching your selection [closed]
- Custom Text on Product Page based on Shipping Class [closed]
- Shipping Location based on IP (Geolocation)
- How to set a minimum length for username in Woocommerce? [closed]
- How to get term name with link for specific ids
- woocommerce “publish “”product”” webhook
- Creating woocommerce product using WordPress REST API
- WooCommerce customer account multiple emails
- WooCommerce Product Page css
- Get the name of all the Items of cart in current session
- Image is not displayed in overridden woocommerce email
- remove categories from product
- Woocommerce: custom loop in product tabs breaks reviews tab
- Category Tree In WooCommerce Product API
- woo commerce get all orders item given category
- Add Stripe Connect data to wc_stripe_payment_request
- WooCommerce get default shipping rate & conditions
- Using WooCommerce for payments only?
- Programatically Remove Item from Cart Not Working – Needs Page Refresh
- How to delete 1000s of duplicated images in WordPress?
- Set default value field meta_Value [closed]
- Woocommerce Product Import Automation
- Get posts from subcategory by parent category slug
- WooCommerce Cart Link based on Cookie Values
- How to increase execution time out limit in WordPress dashboard?
- Setting an attribute as variation in woo commerce via php [duplicate]
- WooCommerce – Conditionally enable shipping for virtual products
- Woocommerce. Max weight per order based on shipping class
- Make order notes field at woocommerce checkout only viewable on front end by Admin level user role [closed]
- How to apply these filters
- get_the_post_thumbnail_url does not return anything if image size is set
- Add to Cart button displaying twice on Shop Page Woocommerce
- How to exclude a taxonomy from shop & search page wooCommerce?
- How to remove unwanted text bug in wordpress site
- Display SKU for each Single product title in group product!
- How can I add a so i can show sale price under normal price
- WooCommerce checkout page price break down table hook
- How can I compel alphanumeric entries for username textbox on woocommerce registration form
- Help me to intergrate product database to WordPress
- WooCommerce how to checkout a product without adding it to the cart
- Using the WordPress and WooCommerce REST APIs in the same Node app
- How to add a “buy now” button below “add to cart” button [closed]
- Cart page displays the price and amount as zero regardless of price entered [closed]
- Display list of only specific tags on product
- Change the “Register” headline in Woocommerce
- How to display customer mobile number in woocommerce customers page
- How to alter taxes amounts when updating an order
- Woocommerce variable product’s total amount by javascript
- Get all categories inside a Product Tag archive page
- Woocommerce – Hide shipping at all, if only certain product or products with certain shipping class is in the cart
- Running JavaScript after using WooCommerce Filter Plugin
- Include stock information in WooCommerce order confirmation email
- Add custom field address_3 before city in user profile
- How to upload very large JPGs to Media Library for WooCommerce digital download prints
- use vendor address instead of store main address for shipping and taxes calculation
- where does $checkout in form-checkout.php woocommerce come from? [closed]
- woocommerce add button underneath order details
- Where do I remove admin order fields (unset doesn’t work)
- How to Get WooCommerce Product Price
- How to trace errors in debug.log for WooCommerce 3.0?
- Auto set Woocommerce product ID as SKU on save
- I want to show always 4 category boxes everytime in woocommerce
- Change the customer’s name to a link on an order management page
- Send a different “thank you” email based on payment method
- Delete product image using WooCommerce API?
- Empty Cart on just mobile and Microsoft edge browser
- Possible to have multiple Authorize.net accounts on the same site?
- Allow HTML in product attributes for WooCommerce
- Use woocomerce shop filters on other pages
- WP All import sale price 0 [closed]
- WooCommerce database upgrade behaviour
- How to neutralize a parent theme php template?
- Woocommerce – change image issue
- Woocommerce: relevancy based related products
- creating number of database entries based on users numerical input
- Import download attachment from woocommerce product
- Add an extra column to /my-account/subscriptions/ WooCommerce page
- Understanding WooCommerce Build-In Geolocation/ Geo_IP classes
- Same WooComerce shop for different WP sites?
- Custom Shipping Method: need non-instance settings and non-global settings
- how to query single product in woocommerce? [closed]
- woocommerce-how can i get all products by their groups! [closed]
- Woocommerce 404 after chang default language
- When creating a new order (on the dashboard) how can I get the ID of the selected customer
- Setup WooCommerce to properly handle inventory with variable product?
- Link Back to Parent Category – Woocommerce
- Why does have_comments return false but get_comments return array of commemts?
- WooCommerce: I Need to hide my page title/header (including menu) from all the WooCommerce related product pages, such as category and keyword pages
- How to add another ordercomments field to woocommerce checkout
- Select Child Attributes Based on Parent [closed]
- How to display gravity form data to woocommerce my account orders table?