Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_create_nonce() | Creates a cryptographic token tied to a specific action, user, user session, and window of time. |
Adds a nonce for customizing menus.
(string[]) (Required) Array of nonces.
(string[]) Modified array of nonces.
File: wp-includes/class-wp-customize-nav-menus.php
public function filter_nonces( $nonces ) { $nonces['customize-menus'] = wp_create_nonce( 'customize-menus' ); return $nonces; }
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_nav_menus/filter_nonces