is_shopp_product()

determines if the current request is for a Shopp product custom post type

is_shopp_product ()

@return bool true if current page request is for a single Shopp product, else false.

Description

determines if the current request is for a Shopp product custom post type

When this function is true, all call to ShoppProduct() will return the requested Product object. Also, because the global product context is set by the page request, shopp(‘product’) theme api calls can be used safely when this function returns true.

Example

if ( is_shopp_product() ) {
    // do Shopp product code here
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar