WP_Customize_Widgets::refresh_nonces()
Refreshes the nonce for widget updates.
Method of the class: WP_Customize_Widgets{}
No Hooks.
Return
Array
. Array of nonces.
Usage
$WP_Customize_Widgets = new WP_Customize_Widgets(); $WP_Customize_Widgets->refresh_nonces( $nonces );
- $nonces(array) (required)
- Array of nonces.
Changelog
Since 4.2.0 | Introduced. |
WP_Customize_Widgets::refresh_nonces() WP Customize Widgets::refresh nonces code WP 6.7.1
public function refresh_nonces( $nonces ) { $nonces['update-widget'] = wp_create_nonce( 'update-widget' ); return $nonces; }