On this page
WP_Customize_Widgets::refresh_nonces( array $nonces ): array
Refreshes the nonce for widget updates.
Parameters
$noncesarray Required-
Array of nonces.
Return
array Array of nonces.
Source
File: wp-includes/class-wp-customize-widgets.php. View all references
public function refresh_nonces( $nonces ) {
$nonces['update-widget'] = wp_create_nonce( 'update-widget' );
return $nonces;
}
Related
Uses
| Uses | Description |
|---|---|
| wp_create_nonce() wp-includes/pluggable.php | Creates a cryptographic token tied to a specific action, user, user session, and window of time. |
Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/refresh_nonces