WC_Auth::__construct()
Setup class.
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. |
WC_Auth::__construct() WC Auth:: construct code WC 7.7.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 ); }