WP_Customize_Widgets::refresh_nonces()publicWP 4.2.0

Refreshes the nonce for widget updates.

Метод класса: WP_Customize_Widgets{}

Хуков нет.

Возвращает

Массив. Array of nonces.

Использование

$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->refresh_nonces( $nonces );
$nonces(массив) (обязательный)
Array of nonces.

Список изменений

С версии 4.2.0 Введена.

Код WP_Customize_Widgets::refresh_nonces() WP 6.5.2

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