WP_Customize_Widgets::refresh_nonces( array $nonces ): array

In this article

Refreshes the nonce for widget updates.

Parameters

$noncesarrayrequired
Array of nonces.

Return

array Array of nonces.

Source

public function refresh_nonces( $nonces ) {
	$nonces['update-widget'] = wp_create_nonce( 'update-widget' );
	return $nonces;
}

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

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