Created
June 1, 2021 18:54
-
-
Save manuelhudec/46b6d2529cbe6f1fdd5be282f2670bb0 to your computer and use it in GitHub Desktop.
Client-Portal WP Plugin - Admin and store customers also as customer portal role
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
| function my_leco_cp_client_roles( $roles ) { | |
| $roles = array_merge( $roles, array( 'administrator', 'customer' ) ); | |
| return $roles; | |
| } | |
| add_filter( 'leco_cp_client_roles', 'my_leco_cp_client_roles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment