WC_Auth::add_endpoint()
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() WC Auth::add endpoint code WC 9.3.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' ); }