Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Plugin Name: PRMascot
- * Description: A custom plugin for PRMascot
- * Version: 1.0.4
- * Tags: custom
- * Author: Jason Hogan
- * Author URI: https://www.prmascot.com/
- */
- /**
- /**
- * Disable Notifications Addon
- * @since 1.0
- * @version 1.0.2
- */
- function mycred_pro_disable_notice_addon( $modules ) {
- if ( get_current_blog_id() != get_network()->site_id && array_key_exists( 'notices', $modules['solo'] ) ) {
- unset( $modules['solo']['notices'] );
- }
- return $modules;
- }
- add_filter( 'mycred_load_modules', 'mycred_pro_disable_notice_addon', 999 );
- /**
- * Disable Notifications
- * @since 1.0.3
- * @version 1.0
- */
- function mycred_pro_disable_notices( $content ) {
- if ( get_current_blog_id() != get_network()->site_id )
- return '';
- return $content;
- }
- add_filter( 'mycred_notifications_note', 'mycred_pro_disable_notices' );
- /**
- * Disable Points for Viewing Content Hook
- * @since 1.0.4
- * @version 1.0
- */
- function mycred_pro_disable_view_content_hook( $run ) {
- if ( $run && get_current_blog_id() != get_network()->site_id )
- return false;
- return $run;
- }
- add_filter( 'mycred_view_content', 'mycred_pro_disable_view_content_hook' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement