Guest User

mycRED

a guest
Sep 19th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. /**
  3. * Plugin Name: PRMascot
  4. * Description: A custom plugin for PRMascot
  5. * Version: 1.0
  6. * Tags: custom
  7. * Author: Jason Hogan
  8. * Author URI: https://www.prmascot.com/
  9. */
  10.  
  11. /**
  12. * Disable Notifications
  13. * @since 1.0
  14. * @version 1.0
  15. */
  16. function mycred_pro_disable_notices( $modules ) {
  17.  
  18. $blog_to_block = 4;
  19.  
  20. if ( get_current_blog_id() == $blog_to_block && array_key_exists( 'notices', $modules['solo'] ) ) {
  21. unset( $modules['solo']['notices'] );
  22. }
  23.  
  24. return $modules;
  25.  
  26. }
  27. add_action( 'mycred_load_modules', 'mycred_pro_disable_notices', 99 );
Advertisement
Add Comment
Please, Sign In to add comment