public function undismiss() {
		// Validate nonce.
		if ( isset( $_POST['set_key_auth'] ) && ! empty( $_POST['notice'] ) && check_ajax_referer( 'boldgrid_set_key', 'set_key_auth', false ) ) {
			$id = sanitize_key( $_POST['notice'] );

			// Get all of the notices this user has dismissed.
			$dismissals = get_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices' );

			// Loop through all of the dismissed notices. If we find the dismissal, then remove it.
			foreach ( $dismissals as $dismissal ) {
				if ( $id === $dismissal['id'] ) {
					delete_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices', $dismissal );
					break;
				}
			}
		}
	}
public function undismiss() {
		// Validate nonce.
		if ( isset( $_POST['set_key_auth'] ) && ! empty( $_POST['notice'] ) && check_ajax_referer( 'boldgrid_set_key', 'set_key_auth', false ) ) {
			$id = sanitize_key( $_POST['notice'] );

			// Get all of the notices this user has dismissed.
			$dismissals = get_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices' );

			// Loop through all of the dismissed notices. If we find the dismissal, then remove it.
			foreach ( $dismissals as $dismissal ) {
				if ( $id === $dismissal['id'] ) {
					delete_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices', $dismissal );
					break;
				}
			}
		}
	}
public function undismiss ( ) { // Validate nonce. if ( isset ( $ _POST [ 'set_key_auth' ] ) && ! empty ( $ _POST [ 'notice' ] ) && check_ajax_referer ( 'boldgrid_set_key' , 'set_key_auth' , false ) ) { $ id = sanitize_key ( $ _POST [ 'notice' ] ) ; // Get all of the notices this user has dismissed. $ dismissals = get_user_meta ( get_current_user_id ( ) , 'boldgrid_dismissed_admin_notices' ) ; // Loop through all of the dismissed notices. If we find the dismissal, then remove it. foreach ( $ dismissals as $ dismissal ) { if ( $ id === $ dismissal [ 'id' ] ) { delete_user_meta ( get_current_user_id ( ) , 'boldgrid_dismissed_admin_notices' , $ dismissal ) ; break ; } } } }
Handle undismissal of the key prompt notice.

@since 2.1.0

@uses $_POST['notice'] Notice id.

@hook: wp_ajax_undismissBoldgridNotice
Handle undismissal of the key prompt notice .