WC_REST_Authentication::__construct()publicWC 1.0

Initialize authentication actions.

Метод класса: WC_REST_Authentication{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_REST_Authentication::__construct() WC 8.7.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 );
}