Automattic\WooCommerce\Admin\API\AI
StoreInfo::register_routes()
Register routes.
Method of the class: StoreInfo{}
No Hooks.
Return
null
. Nothing (null).
Usage
$StoreInfo = new StoreInfo(); $StoreInfo->register_routes();
StoreInfo::register_routes() StoreInfo::register routes code WC 9.4.2
public function register_routes() { $this->register( array( array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this, 'get_response' ), 'permission_callback' => array( Middleware::class, 'is_authorized' ), ), 'schema' => array( $this, 'get_schema' ), ) ); }