You appear to be a bot. Output may be restricted
Description
Purchase Collection Shortcode
Displays a collection purchase link for adding all items in a taxonomy term to the cart.
Usage
$string = edd_purchase_collection_shortcode( $atts, $content );
Parameters
- $atts
- ( array ) required – Shortcode attributes
- $content
- ( string ) optional –
Returns
string
Source
File name: easy-digital-downloads/includes/shortcodes.php
Lines:
1 to 15 of 15
function edd_purchase_collection_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'taxonomy' => '', 'terms' => '', 'text' => __('Purchase All Items','easy-digital-downloads' ), 'style' => edd_get_option( 'button_style', 'button' ), 'color' => edd_get_option( 'checkout_color', 'blue' ), 'class' => 'edd-submit' ), $atts, 'purchase_collection' ) ); $button_display = implode( ' ', array( $style, $color, $class ) ); return '<a href="' . esc_url( add_query_arg( array( 'edd_action' => 'purchase_collection', 'taxonomy' => $taxonomy, 'terms' => $terms ) ) ) . '" class="' . $button_display . '">' . $text . '</a>'; }