new NavMenuInstancePartial()
Partial representing an invocation of wp_nav_menu().
- Since:
-
- 4.5.0
- Source:
Extends
Methods
-
initialize(id, options)
-
Constructor.
Parameters:
Name Type Description idstring Partial ID. optionsObject Properties
Name Type Argument Description paramsObject Properties
Name Type Description navMenuArgsObject Properties
Name Type Argument Description args_hmacstring theme_locationstring <optional>
menunumber <optional>
constructingContainerContextobject <optional>
- Since:
-
- 4.5.0
- Source:
-
isRelatedSetting(setting, newValue, oldValue)
-
Return whether the setting is related to this partial.
Parameters:
Name Type Description settingwp.customize.Value | string Object or ID. newValuenumber | object | false | null New value, or null if the setting was just removed. oldValuenumber | object | false | null Old value, or null if the setting was just added. - Since:
-
- 4.5.0
- Source:
Returns:
- Type
- boolean
-
refresh()
-
Make sure that partial fallback behavior is invoked if there is no associated menu.
- Since:
-
- 4.5.0
- Source:
Returns:
- Type
- Promise
-
renderContent(placement)
-
Render content.
Parameters:
Name Type Description placementwp.customize.selectiveRefresh.Placement - Source: