woocomerce api take oauth1.0 for HTTP and basic HTTP authentication for HTTPS request my query is simple how to simply remove this authentication. i did some digging and found there is a class in woocommerce plugin with a constructor as
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 );
}
my job is simply remove the authentication part. here it is saying to hook this filter at a later priority how to do so and how to return a valid USER?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire