GC_Customize_Nav_Menus::hash_nav_menu_args()
最后更新于:2021-11-27 04:16:22
GC_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.
参数
- $args
-
(array) (Required) The arguments to hash.
响应
(string) Hashed nav menu arguments.
源文件
文件: gc-includes/class-gc-customize-nav-menus.php
public function hash_nav_menu_args( $args ) {
return gc_hash( serialize( $args ) );
}