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