shopp_collection_shortcode

filters the output of the catalog-collection short-code.

add_filter( 'shopp_collection_shortcode', [callback] )

@param string $content the content from processing the catalog-collection or category short-code.

Description

filters the output of the catalog-collection or category (now deprecated) shortcodes.

Example

// register filter callback
add_filter('shopp_collection_shortcode', 'shopp_collections_filter');

// create filter function
function shopp_collections_filter( $content ) {
    $before = '<div id="shopp">';
    $after = '</div>';

    return $before . $content . $after;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar