public function admin_notices() {
		if ( ! current_user_can( $this->userRole ) ) {
			return;
		}

		$prompt = $this->getNext();
		if ( empty( $prompt ) ) {
			return;
		}

		$slides = $this->getPromptSlides( $prompt );
		if ( ! empty( $slides ) ) {
			echo '<div class="notice notice-success bglib-rating-prompt is-dismissible" data-slide-name="' . esc_attr( $prompt['name'] ) . '">';
			foreach ( $slides as $slide ) {
				echo $slide;
			}
			wp_nonce_field( 'bglib-rating-prompt' );
			echo '</div>';
		}
	}
public function admin_notices() {
		if ( ! current_user_can( $this->userRole ) ) {
			return;
		}

		$prompt = $this->getNext();
		if ( empty( $prompt ) ) {
			return;
		}

		$slides = $this->getPromptSlides( $prompt );
		if ( ! empty( $slides ) ) {
			echo '<div class="notice notice-success bglib-rating-prompt is-dismissible" data-slide-name="' . esc_attr( $prompt['name'] ) . '">';
			foreach ( $slides as $slide ) {
				echo $slide;
			}
			wp_nonce_field( 'bglib-rating-prompt' );
			echo '</div>';
		}
	}
public function admin_notices ( ) { if ( ! current_user_can ( $ this -> userRole ) ) { return ; } $ prompt = $ this -> getNext ( ) ; if ( empty ( $ prompt ) ) { return ; } $ slides = $ this -> getPromptSlides ( $ prompt ) ; if ( ! empty ( $ slides ) ) { echo '<div class="notice notice-success bglib-rating-prompt is-dismissible" data-slide-name="' . esc_attr ( $ prompt [ 'name' ] ) . '">' ; foreach ( $ slides as $ slide ) { echo $ slide ; } wp_nonce_field ( 'bglib-rating-prompt' ) ; echo '</div>' ; } }
Add admin notices.

@since 2.7.7
Add admin notices .