This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 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