WP_Customize_Widgets::refresh_nonces() WordPress Method

The WP_Customize_Widgets::refresh_nonces() method is used to refresh the widget Customizer nonces. This is useful for ensuring that the user has the correct permissions when making changes to widgets in the Customizer.

WP_Customize_Widgets::refresh_nonces( array $nonces ) #

Refreshes the nonce for widget updates.


Parameters

$nonces

(array)(Required)Array of nonces.


Top ↑

Return

(array) Array of nonces.


Top ↑

Source

File: wp-includes/class-wp-customize-widgets.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More