WordPress at Your Fingertips
function is not described

WP_Customize_Manager::refresh_nonces() public WP 4.2.0

Refresh nonces for the current preview.

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->refresh_nonces();

Changelog

Since 4.2.0 Introduced.

Code of WP_Customize_Manager::refresh_nonces() WP 5.8.1

public function refresh_nonces() {
	if ( ! $this->is_preview() ) {
		wp_send_json_error( 'not_preview' );
	}

	wp_send_json_success( $this->get_nonces() );
}