Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save plugin-republic/a43bd29d3e0ac8be5960a50d194643df to your computer and use it in GitHub Desktop.
Save plugin-republic/a43bd29d3e0ac8be5960a50d194643df to your computer and use it in GitHub Desktop.
<?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