WordPress at Your Fingertips
function is not described

WC_REST_Authentication::__construct() public WC 1.0

Initialize authentication actions.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_REST_Authentication::__construct() WC 5.9.0

public function __construct() {
	add_filter( 'determine_current_user', array( $this, 'authenticate' ), 15 );
	add_filter( 'rest_authentication_errors', array( $this, 'authentication_fallback' ) );
	add_filter( 'rest_authentication_errors', array( $this, 'check_authentication_error' ), 15 );
	add_filter( 'rest_post_dispatch', array( $this, 'send_unauthorized_headers' ), 50 );
	add_filter( 'rest_pre_dispatch', array( $this, 'check_user_permissions' ), 10, 3 );
}