GC_Customize_Nav_Menus::filter_nonces()

最后更新于:2021-11-27 04:09:23

GC_Customize_Nav_Menus::filter_nonces( string[]$nonces)

Adds a nonce for customizing menus.

参数

$nonces

(string[]) (Required) Array of nonces.

响应

(string[]) Modified array of nonces.

源文件

文件: gc-includes/class-gc-customize-nav-menus.php

	public function filter_nonces( $nonces ) {
		$nonces['customize-menus'] = gc_create_nonce( 'customize-menus' );
		return $nonces;
	}