WC_API::add_endpoint()public staticWC 2.0

WC API for payment gateway IPNs, etc.

Method of the class: WC_API{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_API::add_endpoint();

Changelog

Since 2.0 Introduced.

WC_API::add_endpoint() code WC 8.7.0

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