Last active
February 16, 2022 12:56
-
-
Save jittarao/6a8f87f3f38812312c5c39d0b082ad72 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
$user = wp_get_current_user(); | |
if ( in_array( 'ROLE_NAME', (array) $user->roles ) ) { | |
?> | |
<script> | |
document.addEventListener('gistReady', function () { | |
gist.chat('hide'); | |
}); | |
</script> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment