I think the conditional you’re looking for is:
is_product_category()
Returns true when viewing a product category archive.
You can see the docs at Conditional Tags
A bit of Google searching seems to indicate that this isn’t always reliable, depending upon your scenario. See here on WordPress codex.
Related Posts:
- Check if add_menu_page exists or not
- Woocommerce hook after creating order? [closed]
- Help with 4.6. Attachment response object in JSON API plugin
- Gutenberg: Error loading block: Invalid parameter(s): attributes but it can be used in the code
- Best way to diagnose which plug-ins/theme uses the most memory?
- How can I attach images to a post from the media library?
- Override Widget class in plugins with custom plugin
- How to prevent a function execution with another function?
- How can I execute some small piece of PHP code in a sandbox area of my WP?
- Activating a single plugin via php
- Does Quantity of files in a plugin affect performance?
- Why is my ajax call refreshing the page?
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to count number of records found in a database table?
- Flickr plugin that will display photos from multiple group pools? [closed]
- Generate JWT Token without username and password
- WordPress web page struggling with performance
- Making menu link open in new tab?
- ReOrder Post Within Categories plugin with featured image
- How to initialize something in unit test before the init hook being called?
- add_filter comment_edit_redirect not working
- Global matrix for shortcodes/content for every page
- Plugin to restrict access to pages in wp-admin
- How to add class in plugin only for network site?
- How to write a plugin to add users to a mail list
- Use the page title in the plugin
- woocommerce 3.2.1 not sending order notification emails
- Two text domains in one plugin
- Cron job not firing
- See which user installed a plugin?
- Plugin or method to delete uploads not in media library?
- Getting WPTouch and W3 Total Cache to Work Together [closed]
- Add woocommerce variation images in gallery?
- Add a CSS class based on categroy id to archive pages
- Add button gutenberg help
- How to add media field to WP_Widget form function?
- Post category with counts been display like a menu
- Comment section not showing correctly
- add input in custom javascript from WordPress pages/posts
- DOMAIN_CURRENT_SITE constant being regularly overridden [closed]
- Plugin Repository commit doesn’t show up in activity
- Troubleshooting Plugins.php HTTP install path vs. a HTTPS for a single Plug-In
- How to allow user to select User ID in Formidable Pro form? [closed]
- Can’t Install Standard Plugins on a Local MAMP installation
- Custom Shortcode Broken in WordPress 3.1
- How do i edit the plugin files in DataBase via phpMyAdmin?
- How to set intervals in cron jobs?
- Why Do I get “wp_remote-get: could not handle for fopen()”?
- Disable a plugin from ever upgrading?
- Custom post types – remove default post supports through empty array?
- How to get a list of bundled products using wp_query in woocommerce
- How to be escape Variables and options when echo?
- Where does MonsterInsights put Google Analytics code?
- check uncategorized category by default
- Trying to add_action in a loop
- How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]
- Settings API Message Error is global
- Dynamic Rating Plugin to Add Anywhere
- How can i find the cron jobs that run on my site and then move them to the server side?
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Use a custom block in another block
- Hide fields in woocommerce settings
- Help with autofilling field
- I/O Usage goes max. just after every new post published and WP site down
- Bulk Edit Media Library alt, caption, image names
- WordPress is redirecting me to homepage
- See which user role / capability is needed to use a plugin
- Custom REST API POST Endpoint Not Working, 404 Error
- Error messages in Multilingual part of the site
- “Fire Secure” menu item
- WordPress how do I change images used in plugins?
- Admin login substantially slower on production server
- Can we rename a plugin directory for a already launched plugin?
- Admin Custom Login loses settings on Code and Data migration
- custom REST endpoint not passing body of POST request to callback
- Admin page and admin menu. Permissions plugin
- function of parent not working in childtheme
- WordPress core update fails – no issues with plugin updates
- Am I correctly adding styles to plugin?
- How to hook into search results template or query?
- How to redirect from plugin page
- Can’t redirect to previous page after using GET
- Why function hooked using object are executing at all time?
- What is the Object for WP_Error Class?
- Which part of the plugin to change so the updater won’t register the next version?
- Hide/Show panel not showing – ACF
- How do I locate specific file in a post that affects ssl?
- How to make only selected posts appear on a selected wordpress page
- WordPress Plugins Error
- Any way to hook into WP after a page displays?
- selecting options from another form
- How to remove . (several lines of customized programming code appear here) from wordpress pages
- Translate text for empty product
- WordPress Smart Iframe Browser [closed]
- How to know if your code is executed on wordpress.com and wordpress.org?
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- How can we extent core/group or cover block?
- Private WordPress Content
- Customize WP Filter Hook