Created
November 25, 2015 13:52
-
-
Save JulioPotier/9525143ebc1d90cf4cf4 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
add_filter( 'pre_get_imagify_option_admin_bar_menu', 'imagify_admin_bar_for_admins' ); | |
function imagify_admin_bar_for_admins() { | |
return current_user_can( 'manage_options' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment