Automattic\WooCommerce\StoreApi
Authentication::check_authentication()
The Store API does not require authentication.
{} Это метод класса: Authentication{}
Хуков нет.
Возвращает
\WP_Error|null|true|false
.
Использование
$Authentication = new Authentication(); $Authentication->check_authentication( $result );
- $result(\WP_Error|разное) (обязательный)
- Error from another authentication handler, null if we should handle it, or another value if not.
Код Authentication::check_authentication() Authentication::check authentication WC 6.8.0
public function check_authentication( $result ) { if ( ! empty( $result ) ) { return $result; } if ( $this->is_request_to_store_api() ) { return true; } return $result; }