Exemplo n.º 1
0
/**
 * Shortcode function for the checkout form.
 */
function accesspress_checkout_form_shortcode($atts)
{
    add_filter('comments_open', '__return_false');
    ob_start();
    accesspress_checkout_form($atts);
    $checkout_form = ob_get_clean();
    return $checkout_form;
}
Exemplo n.º 2
0
/**
 * Shortcode function for the checkout form.
 */
function accesspress_checkout_form_shortcode($atts)
{
    /** Get shortcode $atts */
    $atts = shortcode_atts(array('account_box_heading' => __('1. Create Your Account', 'premise'), 'account_box_heading_member' => __('1. Your Account', 'premise'), 'payment_box_heading' => __('2. Choose Payment Method', 'premise'), 'cc_box_heading' => __('3. Enter Credit Card Information', 'premise'), 'member_text' => __('Complete Your Purchase', 'premise'), 'nonmember_text' => __('Create Account and Complete Your Purchase', 'premise')), $atts);
    add_filter('comments_open', '__return_false');
    ob_start();
    accesspress_checkout_form($atts);
    $checkout_form = ob_get_clean();
    return $checkout_form;
}