Logo Logo Logo Logo Logo
  • Work Overview
  • Code Snippets Central
  • About
  • Contact
  • Work Overview
  • Code Snippets Central
  • About
  • Contact
Back to all articles →

Topic: Actions and Filters / Functions PHP File / Storefront Theme / WooCommerce

04 Apr Conditional Statements

Posted at 20:30h in Actions and Filters, Functions PHP File, Storefront Theme, WooCommerce by Atkinson
//If in shop OR category archive
if (is_shop() || is_product_category()){
//do something
}
//If in shop AND category archive
if (is_shop() && is_product_category()){
//do something
}


Facebook • Instagram • Dribbble • Twitter • LinkedIn
Copyright © Janet Atkinson 2023. All Rights Reserved.
Images and/or Artwork may not redistributed, reproduced, or republished without prior written permission.


For fine art painting and other personal work by Janet Atkinson please visit janetatkinsonstudio.com