Created
July 14, 2020 10:11
-
-
Save csaborio001/678e4d6b324a1d5d837a512a308e4c41 to your computer and use it in GitHub Desktop.
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
$current_user = wp_get_current_user(); | |
$current_user_roles = $current_user->roles; | |
if ( in_array( 'administrator', $current_user_roles, true ) ) { | |
// Show the Review. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment