WP_Customize_Nav_Menus::render_nav_menu_partial

Advertisement

Summery Summery

Render a specific menu via wp_nav_menu() using the supplied arguments.

Syntax Syntax

WP_Customize_Nav_Menus::render_nav_menu_partial( WP_Customize_Partial $partial, array $nav_menu_args )

Parameters Parameters

$partial

(Required) Partial.

$nav_menu_args

(Required) Nav menu args supplied as container context.

Return Return

(string|false)

Source Source

File: wp-includes/class-wp-customize-nav-menus.php

	}

	/**
	 * Hashes (hmac) the nav menu arguments to ensure they are not tampered with when
	 * submitted in the Ajax request.
	 *
	 * Note that the array is expected to be pre-sorted.
	 *
	 * @since 4.3.0
	 *
	 * @param array $args The arguments to hash.
	 * @return string Hashed nav menu arguments.
	 */
	public function hash_nav_menu_args( $args ) {
		return wp_hash( serialize( $args ) );
	}

	/**
	 * Enqueue scripts for the Customizer preview.
	 *
	 * @since 4.3.0
	 */
	public function customize_preview_enqueue_deps() {

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

See also See also

Advertisement

Leave a Reply