WC_API_Authentication::__construct()publicWC 2.1

Setup class

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

Хуков нет.

Возвращает

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

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

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

Список изменений

С версии 2.1 Введена.

Код WC_API_Authentication::__construct() WC 8.7.0

public function __construct() {

	// To disable authentication, hook into this filter at a later priority and return a valid WP_User
	add_filter( 'woocommerce_api_check_authentication', array( $this, 'authenticate' ), 0 );
}