title: WooCommerce: How to exclude a specific page in a hooked action
body: <p>This code works perfectly except I'm trying to determine how to EXCLUDE the main shop page from being included in the action. This hook adds the HTML code to all archive-type pages including the main shop page. Given this is a link back to the shop page, it should be excluded on the shop page.</p>
  <p>Any help would be greatly appreciated.</p>
  <pre><code>function add_back_to_catalog_category() { 
      ?&gt;
      &lt;div&gt;&lt;br&gt;&lt;p class=&quot;button-catalog&quot;&gt;&lt;a href=&quot;/shop/&quot;&gt;Back to Catalog - All Products&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;?php
  }
  add_action( 'woocommerce_after_shop_loop', 'add_back_to_catalog_category' );
  </code></pre>
  <p><a href="https://hooks.wpdesk.org/shop/" rel="nofollow noreferrer">Visual reference to <code>woocommerce_after_shop_loop</code> action hook.</a></p>