| 开发者 | ebizon1 |
|---|---|
| 更新时间 | 2025年10月14日 13:01 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Plugins > Add New > Upload Plugin.Install Now.Activate Plugin.Settings > AskPro Product Widget in your WordPress admin.Save Changes.Settings > AskPro Analytics to see weekly reports on product queries.functions.php file (or a custom plugin for better update safety):
php
function askpro_add_product_widget() {
if (is_product() && shortcode_exists('askpro_product_widget')) {
echo do_shortcode('[askpro_product_widget]');
}
}
add_action('woocommerce_single_product_summary', 'askpro_add_product_widget', 15);
This will automatically display the AskPro Product Widget within the product summary section (typically before the short description) on all single product pages. Adjust the priority (15) to change its position if needed.[askpro_product_widget] directly into any WooCommerce product's description or content area using the WordPress editor.No, this plugin is designed to work exclusively with WooCommerce. It relies on WooCommerce's product data, functions, and page structure. If WooCommerce is not active, the plugin will display an admin notice and its core features will not function.
This plugin is configured to use the Google Gemini AI API (specifically, the gemini-2.5-flash model). You will need to obtain an API key from Google.
You can obtain an API key from the Google Cloud Console or Google AI Studio, depending on your project setup. Refer to Google's official documentation for the latest instructions on generating API keys.
The plugin logs the product_id, user_id (0 if not logged in), the query_text submitted by the user, and the response_text received from the AI, along with the log_time. This data is stored in a custom database table (wp_ai_logs by default).
Yes, upon uninstallation, the plugin deletes its custom database table (wp_ai_logs) and removes the stored API key from your WordPress options.
wp_ai_logs).askpro-product-widget text domain.