WordPress at Your Fingertips
function is not described

WC_Auth::__construct() public WC 2.4.0

Setup class.

{} It's a method of the class: WC_Auth{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Auth = new WC_Auth();
$WC_Auth->__construct();

Changelog

Since 2.4.0 Introduced.

Code of WC_Auth::__construct() WC 5.8.0

public function __construct() {
	// Add query vars.
	add_filter( 'query_vars', array( $this, 'add_query_vars' ), 0 );

	// Register auth endpoint.
	add_action( 'init', array( __CLASS__, 'add_endpoint' ), 0 );

	// Handle auth requests.
	add_action( 'parse_request', array( $this, 'handle_auth_requests' ), 0 );
}