WC_Legacy_API::init()
Init the legacy API.
Method of the class: WC_Legacy_API{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Legacy_API = new WC_Legacy_API(); $WC_Legacy_API->init();
WC_Legacy_API::init() WC Legacy API::init code WC 8.6.1
public function init() { add_action( 'parse_request', array( $this, 'handle_rest_api_requests' ), 0 ); $this->mark_method_as_accessible( 'maybe_display_legacy_wc_api_usage_notice' ); self::add_action( 'admin_notices', array( $this, 'maybe_display_legacy_wc_api_usage_notice' ), 0 ); }