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.


Parameters

$response

(array)(Required)Response.


Top ↑

Return

(array) Response.


Top ↑

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;
	}

Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.