WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances() WordPress Method
The WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances() method is used to export partial rendered nav menu instances. This is useful for creating a static front-end for a WordPress site that uses the Customizer to manage its menus.
WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances( array $response ) #
Exports any wp_nav_menu() calls during the rendering of any partials.
Contents
Parameters
- $response
(array)(Required)Response.
Return
(array) Response.
Source
File: wp-includes/class-wp-customize-nav-menus.php
public function export_partial_rendered_nav_menu_instances( $response ) {
$response['nav_menu_instance_args'] = $this->preview_nav_menu_instance_args;
return $response;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |