Last active
August 29, 2016 21:34
-
-
Save SirDarcanos/7fab36c684324685c757ea69af6c100c 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_action( 'init', 'remove_jpcf_nonadmin' ); | |
function remove_jpcf_nonadmin() { | |
if ( ! current_user_can( 'manage_woocommerce' ) ) { | |
remove_action( 'media_buttons', 'grunion_media_button', 999 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment