Created
May 27, 2024 15:59
-
-
Save braddalton/d4604a26e4fb1a4a5fc0df1068e8d654 to your computer and use it in GitHub Desktop.
Add Groups for Users in WordPress https://wpsites.net/?p=116057
This file contains hidden or 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
add_action('init', 'custom_add_customer_groups'); | |
function custom_add_customer_groups() { | |
add_role('group1', __('Group 1'), array()); | |
add_role('group2', __('Group 2'), array()); | |
add_role('group3', __('Group 3'), array()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment