Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Filters for role-based payment gateways
// Use this filter to ignore all role-based payment gateway rules for non-logged-in users
add_filter( 'wcmo_ignore_payments_for_non_logged_in', '__return_true' );
// Use this filter to include non-logged-in users in 'Permitted' payment gateway rules
add_filter( 'wcmo_ignore_permitted_payments_for_non_logged_in', '__return_true' );
// Use this filter to exclude non-logged-in users from 'Restricted' payment gateway rules
add_filter( 'wcmo_ignore_restricted_payments_for_non_logged_in', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment