WordPress at Your Fingertips
function is not described

WC_API::add_endpoint() public WC 2.0

WC API for payment gateway IPNs, etc.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_API::add_endpoint();

Changelog

Since 2.0 Introduced.

Code of WC_API::add_endpoint() WC 5.9.0

public static function add_endpoint() {
	parent::add_endpoint();
	add_rewrite_endpoint( 'wc-api', EP_ALL );
}