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_Addon_License_Notice::add_license_notice( string $id, string $type, string $message, int $priority = 9 )

Register a license admin notice via BSF_Admin_Notices.


Description


Parameters

$id

(string) (Required) Notice ID.

$type

(string) (Required) Notice type (error|warning).

$message

(string) (Required) Notice HTML.

$priority

(int) (Optional) Notice priority.

Default value: 9


Return

(void)


Source

File: admin/core/includes/class-astra-addon-license-notice.php

	private function add_license_notice( $id, $type, $message, $priority = 9 ) {
		BSF_Admin_Notices::add_notice(
			array(
				'id'                         => $id,
				'type'                       => $type,
				'message'                    => $message,
				'show_if'                    => true,
				'repeat-notice-after'        => false,
				'display-with-other-notices' => true,
				'is_dismissible'             => true,
				'capability'                 => 'manage_options',
				'priority'                   => $priority,
				'class'                      => 'astra-addon-license-notice',
			)
		);
	}

Changelog

Changelog
Version Description
4.13.4 Introduced.


User Contributed Notes

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