| 开发者 | mralaminahamed |
|---|---|
| 更新时间 | 2025年10月30日 00:27 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPL v2 or later |
| 版权网址: | 版权信息 |
easycommerce_fakerpress_*_data_before_create filterseasycommerce_fakerpress_*_generation_result filterseasycommerce_fakerpress_after_*_created actionseasycommerce_fakerpress_rest_response for complete API customization
Data Generation Highlights:
/wp-content/plugins/easycommerce-fakerpress/.composer install in the plugin directory.git clone https://github.com/mralaminahamed/easycommerce-fakerpress.git.composer install && yarn install.yarn build.This release includes bug fixes, performance improvements, and enhanced compatibility with the latest EasyCommerce version. Key updates include optimized data generation algorithms, improved error handling, and refined user interface components.
The plugin utilizes native EasyCommerce models (e.g., Product, Customer, Order) for generation, ensuring data validation, relationship integrity, and compatibility with future updates. Direct database queries are avoided to maintain business logic enforcement.
Yes. Examples include linking orders to existing customers/products with inventory adjustments, modeling purchase history for loyalty progression, and validating coupon rules against categories and user data.
Data is crafted using Faker for authentic details (e.g., addresses, names) combined with e-commerce-specific logic, such as seasonal pricing, geographic accuracy, and customer lifecycle patterns.
Caution: Use exclusively in development or staging environments. Always back up your database prior to generation, start with small datasets, and avoid live sites without thorough testing.
Yes, extensively! The plugin includes a comprehensive hook system with 15+ filters and actions for complete customization. Use easycommerce_fakerpress_*_data_before_create filters to modify data before creation, easycommerce_fakerpress_*_generation_result filters for result customization, and easycommerce_fakerpress_after_*_created actions for workflow integration. Configuration panels support quantities/patterns, and abstract classes enable extending generators.
Optimizations include batch processing, memory-efficient algorithms, and resumable progress tracking to handle extensive datasets without timeouts.
Employ WordPress deletion tools for items, bulk cleanup plugins, or targeted database queries (for advanced users). Back up data before any removal.