WC_API_Authentication::__construct()
Setup class
Method of the class: WC_API_Authentication{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_API_Authentication = new WC_API_Authentication(); $WC_API_Authentication->__construct();
Changelog
Since 2.1 | Introduced. |
WC_API_Authentication::__construct() WC API Authentication:: construct code WC 7.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 ); }