public static function show( $message, $id, $class = "notice notice-warning" ) {
		$nonce = wp_nonce_field( 'boldgrid_set_key', 'set_key_auth', true, false );

		if( self::isDismissed( $id ) ) {
			return;
		}

		printf( '<div class="%1$s boldgrid-notice is-dismissible" data-notice-id="%2$s">%3$s%4$s</div>',
			$class,
			$id,
			$message,
			$nonce
		);

		/*
		 * Enqueue js required to allow for notices to be dismissed permanently.
		 *
		 * When notices (such as the "keyPrompt" notice) are shown by creating a new instance of
		 * this class, the js is enqueued by the Filter::add call in the constructor. We do however
		 * allow notices to be shown via this static method, and so we need to enqueue the js now.
		 */
		self::enqueue();
	}
public static function show( $message, $id, $class = "notice notice-warning" ) {
		$nonce = wp_nonce_field( 'boldgrid_set_key', 'set_key_auth', true, false );

		if( self::isDismissed( $id ) ) {
			return;
		}

		printf( '<div class="%1$s boldgrid-notice is-dismissible" data-notice-id="%2$s">%3$s%4$s</div>',
			$class,
			$id,
			$message,
			$nonce
		);

		/*
		 * Enqueue js required to allow for notices to be dismissed permanently.
		 *
		 * When notices (such as the "keyPrompt" notice) are shown by creating a new instance of
		 * this class, the js is enqueued by the Filter::add call in the constructor. We do however
		 * allow notices to be shown via this static method, and so we need to enqueue the js now.
		 */
		self::enqueue();
	}
public static function show ( $ message , $ id , $ class = "notice notice-warning" ) { $ nonce = wp_nonce_field ( 'boldgrid_set_key' , 'set_key_auth' , true , false ) ; if ( self :: isDismissed ( $ id ) ) { return ; } printf ( '<div class="%1$s boldgrid-notice is-dismissible" data-notice-id="%2$s">%3$s%4$s</div>' , $ class , $ id , $ message , $ nonce ) ; /*
		 * Enqueue js required to allow for notices to be dismissed permanently.
		 *
		 * When notices (such as the "keyPrompt" notice) are shown by creating a new instance of
		 * this class, the js is enqueued by the Filter::add call in the constructor. We do however
		 * allow notices to be shown via this static method, and so we need to enqueue the js now.
		 */ self :: enqueue ( ) ; }
Show an admin notice.

At one point we had this method running on the following hook:
Boldgrid\Libary\Notice\show. Because several different notices are
instantiating this class (such as the keyPrompt and ClaimPremiumKey notices),
the hook was being added more than once, causing duplicate admin notices
to show.

@since 2.2.0

@param string $message
@param string $id
@param string $class
Show an admin notice .