WP_Customize_Nav_Menus::hash_nav_menu_args( array $args ): string

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.


Top ↑

Parameters

$args array Required
The arguments to hash.

Top ↑

Return

string Hashed nav menu arguments.


Top ↑

Source

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

public function hash_nav_menu_args( $args ) {
	return wp_hash( serialize( $args ) );
}


Top ↑

Changelog

Changelog
Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.