This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Astra_Notices::get_notice_id( array $notice, int $key )

Get HTML ID for a given notice.


Description


Parameters

$notice

(array) (Required) Notice arguments.

$key

(int) (Required) Notice array index.


Return

(string) HTML if for the notice.


Source

File: inc/lib/astra-notices/class-astra-notices.php

		private static function get_notice_id( $notice, $key ) {
			if ( isset( $notice['id'] ) && ! empty( $notice['id'] ) ) {
				return $notice['id'];
			}

			return 'astra-notices-id-' . $key;
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.