WC_Auth::add_endpoint()
Add auth endpoint.
Description Description
Source Source
File: includes/class-wc-auth.php
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' );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.4.0 | Introduced. |