WP_Customize_Nav_Menus::hash_nav_menu_args( array $args )
Hashes (hmac) the nav menu arguments to ensure they are not tampered with when submitted in the Ajax request.
Description
Note that the array is expected to be pre-sorted.
Parameters
- $args
-
(Required) The arguments to hash.
Return
(string) Hashed nav menu arguments.
Source
File: wp-includes/class-wp-customize-nav-menus.php
public function hash_nav_menu_args( $args ) {
return wp_hash( serialize( $args ) );
}
Changelog
Version | Description |
---|---|
WP-4.3.0 | Introduced. |