WC_Auth::add_endpoint()public staticWC 2.4.0

Add auth endpoint.

Method of the class: WC_Auth{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Auth::add_endpoint();

Changelog

Since 2.4.0 Introduced.

WC_Auth::add_endpoint() code WC 8.6.1

public static function add_endpoint() {
	add_rewrite_rule( '^wc-auth/v([1]{1})/(.*)?', 'index.php?wc-auth-version=$matches[1]&wc-auth-route=$matches[2]', 'top' );
}