Summery Summery
Render a specific menu via wp_nav_menu() using the supplied arguments.
Syntax Syntax
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
Version | Description |
---|---|
4.3.0 | Introduced. |