Automattic\WooCommerce\Admin\API\AI
BusinessDescription::register_routes()
Register routes.
Method of the class: BusinessDescription{}
No Hooks.
Return
null
. Nothing (null).
Usage
$BusinessDescription = new BusinessDescription(); $BusinessDescription->register_routes();
BusinessDescription::register_routes() BusinessDescription::register routes code WC 9.4.2
public function register_routes() { $this->register( array( array( 'methods' => \WP_REST_Server::CREATABLE, 'callback' => array( $this, 'update_business_description' ), 'permission_callback' => array( Middleware::class, 'is_authorized' ), 'args' => array( 'business_description' => array( 'description' => __( 'The business description for a given store.', 'woocommerce' ), 'type' => 'string', ), ), ), 'schema' => array( $this, 'get_schema' ), ) ); }