Category: WooCommerce

  • How to Get Total Number of Products in Your WooCommerce Store

    If you want to figure out how products you have in your WooCommerce store programmatically you can use this WordPress function written in php. How to Get The Total Products Using wp_count_posts() WordPress Function The first parameter of the function is the most important one. It is the custom post type whose posts we want […]

  • is_shop() function doesn’t work WooCommerce

    Sometimes you may run into a case where a php function that WooCommerce has defined doesn’t work as expected. This could be due to WooCommerce not being fully loaded or something is not yet set up internally (WP query or WC query). You can try hooking your function in one of the following hooks. It […]