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:
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- Disable plugin / plugin action via theme
- Create a table in custom plugin on the activating it?
- How to eliminate weird 404 errors in wp-admin?
- How would you require and automatically download dependent plugins?
- Simple form that saves to database
- How to call plugin path in JS?
- Create WooCommerce Product Category Programmatically
- Get Current user email as a return string value
- Getting Custom Post Type content from main-site of a Multisite
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Publish Post After Click On A Link
- wp_enqueue_scripts not working inside shortcode
- Over write plugin templates
- Tracking Disqus comments on Google Analytics
- PGP-Encrypt system-generated notifications
- Using has_filter with a class based plugin to check whether the plugin is active or not
- Social sharing post’s shortlink instead of permalink
- Handling jQuery Component Collision
- Plugin/Folder permission issues with Azure
- Get data from plugin People list in author template
- How to limit WordPress pages during updates?
- ajax front-end increment views on click
- WordPress converting my code
- Plugin to list active plugins across networked sites
- How to make a custom field as an editor in wordpress?
- Gutenberg: How to refresh ServerSideRender with useSelect and AsyncModeProvider true?
- How do i save plugin-specific info?
- Adding custom code to a WordPress site
- Output array into one table cell
- How to add a full edit link to front-end editor?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- get_post_type() and WP_QUERY issue
- Python with wordpress plugin
- How to find wordpress db schema changes when upgrading from 4.9 to 5.2
- WordPress Post Visibility Options for Frontend
- How do I go back to wordpress 3.5
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- What are the Best Practises When Using AJAX in Plugin Development?
- Show Sitename on Yoast SEO Title tag [closed]
- Plugins in WP_Options but not Active
- Create a single website with 3 theme options in wordpress
- Check if user is on backend page
- How to get specific string/value from an array? php [closed]
- React error #231with Custom Blocks after upgrade to WP 5.5
- Background Music WP [closed]
- WordPress failing to update plugins
- Image tooltip enable/disable
- Upload files to the plugin menu
- do_action in conditional
- Show WordPress Plugin Menu(Admin) To Editor
- Call another page in forms
- How many MySQL queries per visit I should normally have?
- Attachments broken after giving WordPress its own directory
- Want to modify a Plugin – Tweetily – Can I make it tweet a Custom Field instead of Post Title?
- Chat support plugin? [closed]
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- how does ‘init’ /’parse_request’ hook work for wordpress?
- Service status plugin
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- How to add gallery to post and make seperate album page with gallery link to post?
- Having a problem with rewrite_rules and rewrite_tags – url not rewriting properly and query var missing
- Share login credential with QR code
- Shortcode do not return the right data in post
- Display pagination in reservation Plugin and and Print table as pdf
- Undeletable column in Posts
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Content disappears when searching with Search & Filter plugin
- Avoid WordPress header bar when form submission using admin_post in the frontend
- How to fix shifting header after installing speed / cache plugins?
- PHP message: WordPress database error Deadlock found when trying to get lock
- Field salespeople task management
- Hide ‘add to cart’ button for some products [duplicate]
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- ClassLoader.php issues after moving to a new host
- plugins break after moving wp-content folder
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- Add Flatr button to Sharing option
- Change localization only for plugin
- How to get author developer link on plugin page
- wp_schedule_event need to deactivate plugin changing recurrance
- Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
- ajax request not returning the result
- adding image in the header of my dev widget
- passing ‘&’ in return function of add_filter
- Session alternative for plugins (due to caching)
- WordPress 3.5 install error
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Plugin with custom domain
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- Customize Multi-Column Tag Map to fetch specific post-type
- Upload Image to desired directory through plugin
- Fast Tranfering my WordPress site to another server
- woocommerce retriving category name as div class?
- Duplicating wordpress install issue
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Plugin Option Fire Custom Function After Save
- My wp_update_nav_menu action is firing twice
- Ajax button “Load more” is not loading correct language version posts for logged out users