WordPress at Your Fingertips
function is not described

WC_Auth::add_endpoint() public WC 2.4.0

Add auth endpoint.

{} It's a method of the class: WC_Auth{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Auth::add_endpoint();

Changelog

Since 2.4.0 Introduced.

Code of WC_Auth::add_endpoint() WC 5.8.0

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' );
}