WC_Admin_Notices::prepare_note_with_noncepublic staticWC 1.0

Deprecated since 5.4.0. It is no longer supported and may 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.

Returns

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 10.5.0

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

	return $response;
}