WC_API_Authentication::__construct()
Setup class
Description Description
Source Source
File: includes/legacy/api/v2/class-wc-api-authentication.php
public function __construct() {
// To disable authentication, hook into this filter at a later priority and return a valid WP_User
add_filter( 'woocommerce_api_check_authentication', array( $this, 'authenticate' ), 0 );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1 | Introduced. |