Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/8608ecbb329a12fa7e95a4e9b5b79e2d to your computer and use it in GitHub Desktop.
Save braddalton/8608ecbb329a12fa7e95a4e9b5b79e2d to your computer and use it in GitHub Desktop.
Add Customer User Role - WooCommerce https://wpsites.net/?p=65638
add_action( 'admin_init', 'add_customer_user_role' );
function add_customer_user_role() {
add_role(
'customer',
__( 'Customer - Expired Subscriber' ),
array(
'read' => true,
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment