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
Parameters Parameters
- $error
-
(Required) Error data.
Return Return
(WP_Error|null|bool)
Source Source
File: includes/class-wc-rest-authentication.php