Echo the header of a content box.


do_action( 'ms_helper_settings_box_header_init', (string) $title, (string) $description, (string) $state ); 

That box has a similar layout to a normal WordPress meta-box. The box has a title and description and can optionally be collapsible.

Parameters (3)

0. $title (string)
Box title displayed in the top
1. $description (string)
Description to display
2. $state (string)
Toggle-state of the box: static/open/closed


To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ms_helper_settings_box_header_init', $title, $description, $state ); 
The following example is for adding a hook callback.
  1. // define the ms_helper_settings_box_header_init callback 
  2. function action_ms_helper_settings_box_header_init( $title, $description, $state ) { 
  3. // make action magic happen here... 
  4. }; 
  6. // add the action 
  7. add_action( 'ms_helper_settings_box_header_init', 'action_ms_helper_settings_box_header_init', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ms_helper_settings_box_header_init', 'action_ms_helper_settings_box_header_init', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

  1. do_action( 'ms_helper_settings_box_header_init', $title, $description, $state );