WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances()
Exports any wp_nav_menu() calls during the rendering of any partials.
Method of the class: WP_Customize_Nav_Menus{}
No Hooks.
Return
Array
. Response.
Usage
$WP_Customize_Nav_Menus = new WP_Customize_Nav_Menus(); $WP_Customize_Nav_Menus->export_partial_rendered_nav_menu_instances( $response );
- $response(array) (required)
- Response.
Changelog
Since 4.5.0 | Introduced. |
WP_Customize_Nav_Menus::export_partial_rendered_nav_menu_instances() WP Customize Nav Menus::export partial rendered nav menu instances code WP 6.6.2
public function export_partial_rendered_nav_menu_instances( $response ) { $response['nav_menu_instance_args'] = $this->preview_nav_menu_instance_args; return $response; }