WP_Customize_Nav_Menus::filter_nonces()
Adds a nonce for customizing menus.
Method of the class: WP_Customize_Nav_Menus{}
No Hooks.
Return
String[]
. Modified array of nonces.
Usage
$WP_Customize_Nav_Menus = new WP_Customize_Nav_Menus(); $WP_Customize_Nav_Menus->filter_nonces( $nonces );
- $nonces(string[]) (required)
- Array of nonces.
Changelog
Since 4.5.0 | Introduced. |
WP_Customize_Nav_Menus::filter_nonces() WP Customize Nav Menus::filter nonces code WP 6.6.2
public function filter_nonces( $nonces ) { $nonces['customize-menus'] = wp_create_nonce( 'customize-menus' ); return $nonces; }