WC_Admin_Notices::prepare_note_with_nonce()public staticWC 1.0

Deprecated from version 5.4.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Parses query to create nonces when available.

Method of the class: WC_Admin_Notices{}

No Hooks.

Return

Object. $response The prepared WP_REST_Response object.

Usage

$result = WC_Admin_Notices::prepare_note_with_nonce( $response );
$response(object) (required)
The WP_REST_Response we're working with.

Changelog

Deprecated since 5.4.0

WC_Admin_Notices::prepare_note_with_nonce() code WC 8.9.0

public static function prepare_note_with_nonce( $response ) {
	wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '5.4.0' );

	return $response;
}