\Barn2\WRO_Lib\AdminNotices

Extends the WPTRT Notices class to allow additional HTML in the admin notice.

Each notice is a new instance of the object.

Summary

Methods
Properties
Constants
boot()
add()
remove()
get()
get_all()
the_notices()
print_scripts()
__construct()
filter_allowed_html()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$notices
N/A

Properties

$notices

$notices : array

An array of notices.

Type

array

Methods

boot()

boot() : void

Adds actions for the notices.

add()

add(string  $id, string  $title, string  $message, array  $options = array()) : void

Add a notice.

Parameters

string $id

A unique ID for this notice. Can contain lowercase characters and underscores.

string $title

The title for our notice.

string $message

The message for our notice.

array $options

An array of additional options to change the defaults for this notice. See Notice::__constructor() for details.

remove()

remove(string  $id) : void

Remove a notice.

Parameters

string $id

The unique ID of the notice we want to remove.

get()

get(string  $id) : \WPTRT\AdminNotices\Notice|null

Get a single notice.

Parameters

string $id

The unique ID of the notice we want to retrieve.

Returns

\WPTRT\AdminNotices\Notice|null

get_all()

get_all() : array

Get all notices.

Returns

array

the_notices()

the_notices() : void

Prints the notice.

print_scripts()

print_scripts() : void

Prints scripts for the notices.

__construct()

__construct() 

filter_allowed_html()

filter_allowed_html(  $allowed_html) 

Parameters

$allowed_html