Class WPDA_Message_Box

Displays a message box the WordPress way.

author Peter Schulz
since 1.0.0
package WPDataAccess\Utilities

 Methods

WPDA_Message_Box constructor

__construct(array $args = array()
since 1.0.0

Parameters

$args

array

[

'message_text' => (string) Message text

'message_type' => (string) Message type

'message_is_dismissible' => (boolean) Indicates whether message box is dismissible

].

Show message box

box() 
since 1.0.0

 Properties

 

Message box number

$message_box_no : integer

Default

 

Sequence number

$message_box_seq : integer

Default

0
Static

Used to give message boxes a unique number within the current response

 

Message type shown to user

$message_hint : string

Default

 

Indicates whether message is dismissible

$message_is_dismissible : string

Default

 

Message box text

$message_text : string

Default

 

Message type (error, notice, action)

$message_type : string

Default

 Constants

 

Default setting dismissible

DEFAULT_MESSAGE_IS_DISMISSIBLE = true 
 

Default message type

DEFAULT_MESSAGE_TYPE = 'notice'