WC_REST_Authentication::__construct()
Initialize authentication actions.
Метод класса: WC_REST_Authentication{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_REST_Authentication = new WC_REST_Authentication(); $WC_REST_Authentication->__construct();
Код WC_REST_Authentication::__construct() WC REST Authentication:: construct WC 9.3.3
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 ); }