WordPress at Your Fingertips
function is not described

WC_Admin_Notices::prepare_note_with_nonce() public WC 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.

{} It's a 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 5.4.0

Code of WC_Admin_Notices::prepare_note_with_nonce() WC 5.9.0

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

	return $response;
}