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
$argsarrayrequired- The arguments to hash.
Source
public function hash_nav_menu_args( $args ) {
return wp_hash( serialize( $args ) );
}
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.