WC_API_Authentication::__construct() – Setup class

You appear to be a bot. Output may be restricted

Description

Setup class

Usage

WC_API_Authentication::__construct();

Parameters

Returns

void

Source

File name: woocommerce/includes/legacy/api/v2/class-wc-api-authentication.php
Lines:

1 to 5 of 5
  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 );
  }
 

 View on GitHub View on Trac