As you say, when triggered ‘save_post’ the changes are not been mae, so there’s not yet an association with a term.
But..in the $_POST['product_cat'] variable you have the array (IDS) of the selected categories, so you can check if the product belongs to the ‘Keyboard’ category ( based on its ID) and decide whether or not to perform further actions
Related Posts:
- How to get WooCommerce Product Category Link by ID?
- Hook to process a new taxonomy tag before it is created?
- Post Formats in the context of the Database ‘Save Post’ function
- How to assign default taxonomy to pages on ‘save_post’?
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- Approach for saving a product attribute values with a custom UI in a woocommerce+dokan set up [closed]
- Set download limit and expiry for WooCommerce downloadable products in specific categories
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- Woocommerce custom taxonomies page
- Outputting an array of term meta values in a custom WooCommerce tab?
- Programatically added attribute, set to ‘show on product page’ automatically. Woocommerce [closed]
- Get child product categories from parent product category in WooCommerce
- Top level parent taxonomy ID
- Woocommerce product search result layout page
- Filter WooCommerce admin products list by a custom taxonomy
- Woocommerce: How to change the add to cart text in a certain category? [closed]
- Catchable fatal error on custom category post
- Get custom category image from menu
- Hide product categories and taxonomy terms in menu if empty
- Display related products based on 2 specific product attributes values in WooCommerce
- How to target parent product category and its children using WooCommerce?
- woocommerce custom product category template
- Getting WooCommerce product related child categories
- Hiding taxonomies with no children WP_Query & tax_query
- How to display ACF taxonomy checkbox links on WooCommerce product category archive
- Hide custom Woocommerce taxonomies when empty
- Dynamically set taxonomy term and show admin notice on post save
- Add attribute taxonomy through code don’t appear in admin product page
- Update Post Taxonomy Automatically Based On Date
- unable to save custom taxonomy terms in a custom-built metabox in wp-admin
- Showing custom taxonomy in woocommerce signle product page
- Warning: Undefined variable $post in C:\xampp\htdocs\… after PHP upgrade
- Admin only taxonomies?
- Custom taxonomy only gets saved in quick edit
- Fill New Taxonomies
- Infinite Scroll appending Next Product Category Term pages
- How to exclude woocommerece product category in search results?
- Cloning product not copying custom taxonomies
- Check if any available product has specific attribute
- how to show product custom taxonomies in woocommerce rest api
- generate random slug when adding taxonomy
- WordPress search form and search result through ACF field in custom taxonomy
- Get user created Woocommerce attributes ( taxonomies ) [closed]
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- How do you search for a post by custom taxonomy?
- Display woocommerce product_cat child terms with thumbnails
- Woocommerce – how to get and display selected variations on single product page
- get_the_terms inside save_post gives old terms
- Taxonomy Child Not Updating Unless I Click Update Twice
- How do I check if a post has a term with a particular ancestor/parent?
- Creating a custom archive page for WooCommerce products based on tags
- Hide empty categories on widget
- Change filter id into slug
- Set Variant options/attributes values on WooCommerce
- custom taxonomy and pages rewrite slug conflict gives 404
- How to get current term in my custom taxonomy in WordPress?
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- Get current term’s ID
- Get current page’s taxonomy
- Get product attribute for Simple product in WooCommerce
- Taxonomy landing pages
- How to get parents of custom taxonomy, as what get_category_parents() do?
- Change URL structure of subcategory archive pages
- How can I display all post IDs from the taxonomy?
- Allow only 1 instance of each term in each custom taxonomy
- Keep taxonomy base name in post permalinks
- get_term_children returns WP_Error for custom taxonomy
- How can I add buttons to a custom column in the taxonomy table?
- JSON API – search by custom taxonomy
- Enable the admin to sort custom taxonomy
- Taxonomies for custom post types
- Taxonomies image
- Howto control custum taxonomy order?
- Save custom taxonomy data in different table not in wp_options for my own plugin
- Redirect on saving term at custom taxnomy
- How to change url for taxonomy pages?
- Search Query for Multiple Terms In Same Taxonomy
- How to Modify Default Text in a Custom Taxonomy Admin Panel?
- Why isn’t the ‘no results’ being shown when a query returns no results?
- How to get_the_term_list() from multiple taxonomies?
- How to get custom post type categories in an array
- WordPress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options
- list custom taxonomy with count
- Custom Taxonomy List with Children
- Displaying Posts Attached to Custom Taxonomy Terms
- saving custom taxonomy as post title
- Taxonomy list links to first post in that term
- Page for custom taxonomy
- What is the best way to change sidebars based on custom taxonomy terms?
- Automatically tag posts based on user-defined words [closed]
- Updating a custom post type’s custom taxonomy in a custom editor block
- Custom taxonomy – no posts found
- Custom button on custom taxonomy listing page
- Custom Taxonomy Archives Page Errors
- customize taxonomy Page
- Remove taxonomy menu without removing the metabox?
- Custom taxonomy list in Worpdress
- How can I show custom field according to taxonomy?
- Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy