public function setNotice( $forceDisplay = false ) {
		if ( $this->notice ) {
			return $this->notice;
		}

		// If we already have transient data saying the API is not available.
		if ( 0 === get_site_transient( 'boldgrid_available' ) ) {
			return new Notice( 'ConnectionIssue' );
		}

		// If we don't have a key stored, or this is not a valid response when calling.
		if ( ! Configs::get( 'key' ) || ! self::$valid || $forceDisplay ) {
			return new Notice( 'keyPrompt', $this );
		}
	}
public function setNotice( $forceDisplay = false ) {
		if ( $this->notice ) {
			return $this->notice;
		}

		// If we already have transient data saying the API is not available.
		if ( 0 === get_site_transient( 'boldgrid_available' ) ) {
			return new Notice( 'ConnectionIssue' );
		}

		// If we don't have a key stored, or this is not a valid response when calling.
		if ( ! Configs::get( 'key' ) || ! self::$valid || $forceDisplay ) {
			return new Notice( 'keyPrompt', $this );
		}
	}
public function setNotice ( $ forceDisplay = false ) { if ( $ this -> notice ) { return $ this -> notice ; } // If we already have transient data saying the API is not available. if ( 0 === get_site_transient ( 'boldgrid_available' ) ) { return new Notice ( 'ConnectionIssue' ) ; } // If we don't have a key stored, or this is not a valid response when calling. if ( ! Configs :: get ( 'key' ) || ! self :: $ valid || $ forceDisplay ) { return new Notice ( 'keyPrompt' , $ this ) ; } }
Add the appropriate notice to the WordPress dashboard.

This method will set the connection issue notice or the prompt key
notice to the user's WordPress dashboard.

@since 1.0.0
Add the appropriate notice to the WordPress dashboard .