WC_REST_Authentication::authentication_fallback( WP_Error|null|bool $error )

Authenticate the user if authentication wasn’t performed during the determine_current_user action.


Description Description

Necessary in cases where wp_get_current_user() is called before WooCommerce is loaded.

See also See also


Top ↑

Parameters Parameters

$error

(Required) Error data.


Top ↑

Return Return

(WP_Error|null|bool)


Top ↑

Source Source

File: includes/class-wc-rest-authentication.php


			


Top ↑

User Contributed Notes User Contributed Notes

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