WordPress.org

Forums

WooCommerce - excelling eCommerce
is_woocommerce() suggestion (1 post)

  1. eggplantstudios
    Member
    Posted 2 years ago #

    I'd like to propose that the function is_woocommerce() in woocommerce-core-functions.php include a is_product_taxonomy() in the if statement.

    ie:

    /**
     * is_woocommerce - Returns true if on a page which uses WooCommerce templates (cart and checkout are standard pages with shortcodes and thus are not included)
     *
     * @access public
     * @return bool
     */
    function is_woocommerce() {
    	return ( is_shop() || is_product_category() || is_product_tag() || is_product() || is_product_taxonomy() ) ? true : false;
    }

    This will help with custom Taxonomies, and CSS styling for them.

    Thanks!

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by eggplantstudios
  • This topic is not resolved
  • WordPress version: 3.5.1

Tags

No tags yet.