WC_API_Authentication::__construct() public WC 2.1
Setup class
{} It's a method of the class: WC_API_Authentication{}
No Hooks.
Return
Null. Nothing.
Usage
$WC_API_Authentication = new WC_API_Authentication(); $WC_API_Authentication->__construct();
Changelog
Since 2.1 | Introduced. |
Code of WC_API_Authentication::__construct() WC API Authentication:: construct WC 5.0.0
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 );
}