WC_API::add_endpoint()
WC API for payment gateway IPNs, etc.
Method of the class: WC_API{}
No Hooks.
Return
null
. Nothing.
Usage
$result = WC_API::add_endpoint();
Changelog
Since 2.0 | Introduced. |
WC_API::add_endpoint() WC API::add endpoint code WC 7.5.1
public static function add_endpoint() { parent::add_endpoint(); add_rewrite_endpoint( 'wc-api', EP_ALL ); }