shopp_payment_methods

filters the number of active payment methods available on the checkout.

add_filter( 'shopp_payment_methods', [callback] )

@param int $count number of active payment methods available on the checkout.

Description

filters the number of active payment methods available on the checkout.

The payment options menu on the checkout does not appear if payment options number less than 2.

Example

// register filter callback
add_filter('shopp_payment_methods', 'payoptions_count_fltr');

// create filter function
function payoptions_count_fltr( $count ) {
    // force the payoptions menu to render
    return $count <= 1 ? 2 : $count;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar