/home/suroeste/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AI
NameSizeModeActions
BusinessDescription.php20950644editdlrm
Images.php29250644editdlrm
Middleware.php13430644editdlrm
Patterns.php30980644editdlrm
Product.php23810644editdlrm
Products.php39920644editdlrm
StoreInfo.php18980644editdlrm
StoreTitle.php40850644editdlrm
Edit: /home/suroeste/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AI/StoreInfo.php (1898B)
\WP_REST_Server::READABLE, 'callback' => [ $this, 'get_response' ], 'permission_callback' => [ Middleware::class, 'is_authorized' ], ], 'schema' => [ $this->schema, 'get_public_item_schema' ], 'allow_batch' => [ 'v1' => true ], ]; } /** * Update the store title powered by AI. * * @param \WP_REST_Request $request Request object. * * @return bool|string|\WP_Error|\WP_REST_Response */ protected function get_route_response( \WP_REST_Request $request ) { $product_updater = new UpdateProducts(); $patterns = PatternsHelper::get_patterns_ai_data_post(); $products = $product_updater->fetch_product_ids( 'dummy' ); if ( empty( $products ) && ! isset( $patterns ) ) { return rest_ensure_response( array( 'is_ai_generated' => false, ) ); } return rest_ensure_response( array( 'is_ai_generated' => true, ) ); } }