shopp_product_shortcode

filters the product shortcode content.

add_filter( 'shopp_product_shortcode', [callback] )

@param string $content the product shortcode content.

Description

filters the product shortcode content.

Example

// register filter callback
add_filter('shopp_product_shortcode', 'shopp_product_shortcode_fltr');

// create filter function
function shopp_product_shortcode_fltr( $content ) {
    // If you need to wrap the shortcode in a shopp div
    $content = '<div id="shopp" class="product">'. $content . '</div>';
    return $content;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar