%s', $title, __( '1 new add-on for Shortcodes Ultimate', 'shortcodes-ultimate' ), '1' ); } public static function disable() { if ( $_GET['page'] === 'shortcodes-ultimate-addons' ) update_option( self::$option, true ); } } // new Su_Counter_Extra_Addon; class Su_Counter_Bundle { static $option = 'su_counter_bundle'; function __construct() { add_filter( 'su/menu/shortcodes', array( __CLASS__, 'display' ) ); add_filter( 'su/menu/addons', array( __CLASS__, 'display' ) ); add_action( 'sunrise/page/before', array( __CLASS__, 'disable' ) ); } public static function display( $title ) { if ( get_option( self::$option ) ) return $title; return sprintf( '%s %s', $title, __( '1 new add-on for Shortcodes Ultimate', 'shortcodes-ultimate' ), '1' ); } public static function disable() { if ( $_GET['page'] === 'shortcodes-ultimate-addons' ) update_option( self::$option, true ); } } // new Su_Counter_Bundle;