WP_Customize_Manager::refresh_nonces()

In this article

Refreshes nonces for the current preview.

Source

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

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

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.