Properties

$list

$list : array

Notices list

Type

normal

Methods

__construct()

__construct() : mixed

Admin_Notices constructor.

Returns

mixed

create_list()

create_list() : mixed

Returns

mixed

get_admin_notices()

get_admin_notices() : array

Returns

array

set_admin_notices()

set_admin_notices( $admin_notices) : mixed

Parameters

$admin_notices

Returns

mixed

notice_priority_sort()

notice_priority_sort( $a,  $b) : mixed

Parameters

$a
$b

Returns

mixed

add_notice()

add_notice(string  $key, array  $data, int  $priority = 10) : mixed

Add notice to UM notices array

Parameters

string $key
array $data
int $priority

Returns

mixed

remove_notice()

remove_notice(string  $key) : mixed

Remove notice from UM notices array

Parameters

string $key

Returns

mixed

render_notices()

render_notices() : mixed

Render all admin notices

Returns

mixed

display_notice()

display_notice(string  $key, bool  $echo = true) : void|string

Display single admin notice

Parameters

string $key
bool $echo

Returns

void|string

lock_registration()

lock_registration() : mixed

Checking if the "Membership - Anyone can register" WordPress general setting is active

Returns

mixed

empty_status_users()

empty_status_users() : mixed

Checking if the "Membership - Anyone can register" WordPress general setting is active

Returns

mixed

extensions_page()

extensions_page() : mixed

Checking if the "Membership - Anyone can register" WordPress general setting is active

Returns

mixed

create_languages_folder()

create_languages_folder() : mixed

To store plugin languages

Returns

mixed

old_extensions_notice()

old_extensions_notice() : mixed

Show notice for customers with old extension's versions

Returns

mixed

install_core_page_notice()

install_core_page_notice() : mixed

Regarding page setup

Returns

mixed

exif_extension_notice()

exif_extension_notice() : mixed

EXIF library notice

Returns

mixed

show_update_messages()

show_update_messages() : mixed

Updating users

Returns

mixed

check_wrong_install_folder()

check_wrong_install_folder() : mixed

Check if plugin is installed with correct folder

Returns

mixed

check_wrong_licenses()

check_wrong_licenses() : mixed

Returns

mixed

need_upgrade()

need_upgrade() : mixed

Returns

mixed

future_changed()

future_changed() : mixed

Check Future Changes notice

Returns

mixed

child_theme_required()

child_theme_required() : mixed

Check if there isn't installed child-theme. Child theme is required for safely saved customizations.

Returns

mixed

common_secure()

common_secure() : mixed

Returns

mixed

api_key_notices()

api_key_notices() : mixed

Notices for the `api_key` field type whose secrets are stored as wp-config.php constants: - the bundled WPConfigTransformer library is missing (broken build), - a save couldn't write wp-config.php (manual instructions), - legacy keys still sit in the DB and should be migrated by re-saving.

Returns

mixed

dismiss_notice()

dismiss_notice() : void

Dismisses an admin notice based on a provided key.

This method processes an AJAX request to dismiss a specific admin notice. It validates the key, verifies the nonce for security, and marks the notice as dismissed.

dismiss()

dismiss(string  $key) : void

Dismiss notice by key.

Parameters

string $key

force_dismiss_notice()

force_dismiss_notice() : void

Forces the dismissal of a specific admin notice by saving it to the hidden notices list.

This method handles the request to dismiss an admin notice. It validates the incoming data, updates the list of hidden notices in the database, and ensures the dismissed notice will not be shown again.

reviews_notice()

reviews_notice() : mixed

Returns

mixed

check_new_user_role()

check_new_user_role() : mixed

Returns

mixed

check_registration_forms()

check_registration_forms() : mixed

Returns

mixed