Created
April 13, 2017 22:06
-
-
Save gabrielmerovingi/d54a7f9cc83be7b0f810358ab41a83e3 to your computer and use it in GitHub Desktop.
Disable JavaScript debug for administrators in the myCRED Notifications Plus add-on.
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
/** | |
* Disable Notifications Debug | |
* @version 1.0 | |
*/ | |
function mycred_pro_disable_notice_debug( $args ) { | |
$args['debug'] = 'no'; | |
return $args; | |
} | |
add_filter( 'mycred_notice_js', 'mycred_pro_disable_notice_debug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment