\jb\adminNotices

Class Notices

Summary

Methods
Properties
Constants
__construct()
create_list()
render()
get_admin_notices()
set_admin_notices()
notice_priority_sort()
add()
remove_notice()
display()
dismiss()
install_predefined_page_notice()
show_update_messages()
template_version()
$list
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$list

$list : array

Notices list

Type

normal

Methods

__construct()

__construct() : mixed

Notices constructor.

Returns

mixed

create_list()

create_list() : mixed

Initialize all admin notices

Returns

mixed

render()

render() : mixed

Render all admin notices

Returns

mixed

get_admin_notices()

get_admin_notices() : array

Getting all admin notices

Returns

array

set_admin_notices()

set_admin_notices(array  $admin_notices) : mixed

Set admin notices variable

Parameters

array $admin_notices

Returns

mixed

notice_priority_sort()

notice_priority_sort(array  $a, array  $b) : int

Sorting notices in predefined priority

Parameters

array $a
array $b

Returns

int

add()

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

Add notice to JB notices array

Parameters

string $key
array $data
int $priority

Returns

mixed

remove_notice()

remove_notice(string  $key) : mixed

Remove notice from JB notices array

Parameters

string $key

Returns

mixed

display()

display(string  $key, bool  $display = true) : string

Display single admin notice

Parameters

string $key
bool $display

Returns

string

dismiss()

dismiss(string  $key) : mixed

Dismiss notices by key

Parameters

string $key

Returns

mixed

install_predefined_page_notice()

install_predefined_page_notice() : mixed

Regarding page setup

Returns

mixed

show_update_messages()

show_update_messages() : mixed

Notices

Returns

mixed

template_version()

template_version() : mixed

Check Templates Versions notice

Returns

mixed