- Developed by: Martin Nestorov
- Explore more at nestorov.dev
- Plugin URI: https://github.com/mnestorov/wp-google-feed-generator
WordPress - Google Feed Generator for WooCommerce is a comprehensive WordPress plugin designed to dynamically generate and manage Google product and product review feeds for WooCommerce stores. This plugin automates the creation of feeds compliant with Google Merchant Center requirements, facilitating better product visibility and integration with Google Shopping.
- Automatic Feed Generation: Automatically generates Google product feeds, ensuring your WooCommerce store's products are readily available for Google Merchant Center.
- Product Review Feeds: In addition to product feeds, this plugin supports generating feeds for product reviews, enhancing product credibility and shopper confidence with user-generated content.
- Custom Endpoints: Implements custom rewrite rules to provide easy access to feeds via dedicated URLs, making it simple to submit these feeds to Google Merchant Center.
- Real-time Updates: Hooks into WooCommerce's product and review updates, ensuring that any additions, updates, or deletions are promptly reflected in the feeds.
- Feed Caching: Utilizes WordPress transients for caching feeds, improving response times and reducing server load for feed generation.
- Scheduled Regeneration: Leverages WP-Cron for scheduled feed updates, ensuring your feeds remain up-to-date without manual intervention.
- Easy Activation and Deactivation: Ensures a smooth setup and cleanup process through activation and deactivation hooks, managing rewrite rules and scheduled events accordingly.
- Custom Labels: Supports custom labels based on various product criteria (e.g., high rating, most ordered, older than X days).
- Dynamic Bundle Tag: Automatically sets the
Is Bundle
attribute based on the presence of thebundle
tag in WooCommerce products. - Additional Attributes: Includes additional attributes such as
g:is_bundle
,g:google_product_category
,g:condition
,g:brand
, andg:availability
in the product feed. - Google Product Category Cleaning: Automatically cleans the Google product category string, removing any leading numbers and hyphens for better compatibility.
- Upload the plugin files to the
/wp-content/plugins/wp-google-feed-generator
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' menu in WordPress.
After activating the plugin, it automatically generates product and review feeds accessible through custom endpoints:
- Product Feed URL: https://yourdomain.com/mn-google-feed
- Review Feed URL: https://yourdomain.com/mn-google-reviews-feed
- CSV Feed Export: https://yourdomain.com/mn-csv-export
These URLs can be submitted to Google Merchant Center for product data and review integration.
The plugin hooks into various WooCommerce and WordPress actions to detect changes in products and reviews, ensuring feeds are always current. Customization options are available through WordPress filters and actions, allowing developers to extend functionalities as needed.
- WordPress 4.7+ or higher.
- WooCommerce 5.1.0 or higher.
- PHP 7.2+
For a detailed list of changes and updates made to this project, please refer to our Changelog.
Contributions are welcome. Please follow the WordPress coding standards and submit pull requests for any enhancements.
If you find this script helpful and would like to support its development and maintenance, please consider the following options:
-
Star the repository: If you're using this script from a GitHub repository, please give the project a star on GitHub. This helps others discover the project and shows your appreciation for the work done.
-
Share your feedback: Your feedback, suggestions, and feature requests are invaluable to the project's growth. Please open issues on the GitHub repository or contact the author directly to provide your input.
-
Contribute: You can contribute to the project by submitting pull requests with bug fixes, improvements, or new features. Make sure to follow the project's coding style and guidelines when making changes.
-
Spread the word: Share the project with your friends, colleagues, and social media networks to help others benefit from the script as well.
-
Donate: Show your appreciation with a small donation. Your support will help me maintain and enhance the script. Every little bit helps, and your donation will make a big difference in my ability to keep this project alive and thriving.
Your support is greatly appreciated and will help ensure all of the projects continued development and improvement. Thank you for being a part of the community! You can send me money on Revolut by following this link: https://revolut.me/mnestorovv
This project is released under the GPL-2.0+ License.