is_shop()
Is_shop - Returns true when viewing the product type archive (shop).
No Hooks.
Return
true|false
.
Usage
is_shop();
Code of is_shop() is shop WC 6.5.1
function is_shop() { return ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id( 'shop' ) ) ); }