WordPress at Your Fingertips

is_shop() WC 1.0

Is_shop - Returns true when viewing the product type archive (shop).

No Hooks.

Return

true|false.

Usage

is_shop();

Code of is_shop() WC 5.6.0

function is_shop() {
	return ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id( 'shop' ) ) );
}

WC Conditional Tags

No comments
    Log In