Method |
Description |
|
__construct ( string $id ) |
Create a new nav menu item fields container |
|
edit_walker ( ) |
Setup custom walker for the Nav Menu entries |
|
form ( $item ) |
Render custom fields inside each Nav Menu entry |
|
get_containers ( ) |
Get containers only once, and store in instance memory. |
|
init ( integer $menu_id, boolean $render = true ) |
Perform instance initialization after calling setup() |
|
initialize_filters ( ) |
Initialize filters. This will be executed only once |
|
is_valid_attach ( ) |
TODO: make sure the containers for nav menus are not printed everywhere |
|
is_valid_save ( ) : boolean |
Checks whether the current request is valid |
|
render ( ) |
Output the container markup |
|
save ( $user_data = null ) |
Perform save operation after successful is_valid_save() check. |
|
set_instance_for_id ( $current_menu_item_id, $render = true ) |
Render attribute prevents field containers showing on menu save |
|
set_menu_id ( integer $menu_id ) |
Set the menu item ID the container will operate with. |
|
to_json ( boolean $load ) : array |
Returns an array that holds the container data, suitable for JSON representation. |
|
update ( $menu_id, $current_menu_item_id ) |
Trigger Save for all instances |
|