WP_Customize_Nav_Menus::filter_nonces( string[] $nonces ): string[]

In this article

Adds a nonce for customizing menus.

Parameters

$noncesstring[]required
Array of nonces.

Return

string[] Modified array of nonces.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

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