Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dc9bd75cab | |||
|
|
c6fbd9584a |
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Siti Category Thumbnails
|
||||
|
||||
Keep WooCommerce product category thumbnails in sync with the most recent product image in each category.
|
||||
|
||||
## What it does
|
||||
- Finds the newest published product in every product category.
|
||||
- Uses that product’s featured image as the category thumbnail.
|
||||
- Can run in a safe dry-run mode to preview changes.
|
||||
- Can be executed from the admin screen or via WP-CLI.
|
||||
|
||||
## Requirements
|
||||
- WordPress
|
||||
- WooCommerce
|
||||
- Sufficient permissions (WooCommerce manager or administrator)
|
||||
|
||||
## Installation
|
||||
1. Upload the plugin folder to your WordPress plugins directory.
|
||||
2. Activate **Siti Category Thumbnails** in the Plugins screen.
|
||||
|
||||
## Usage (Admin)
|
||||
1. Go to **Tools → Category Thumbnails**.
|
||||
2. Click **Uitvoeren** to run the update.
|
||||
3. Click **Dry-run** to preview changes without saving.
|
||||
|
||||
## Usage (WP-CLI)
|
||||
- Run: `wp siti update-category-thumbnails`
|
||||
- Dry-run: `wp siti update-category-thumbnails --dry-run`
|
||||
|
||||
## Notes
|
||||
- Categories without products or products without featured images are skipped.
|
||||
- Only the most recent published product is used per category.
|
||||
|
||||
## Support
|
||||
For support, contact SitiWeb: https://sitiweb.nl/
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"plugin_name": "Siti Category Thumbnails",
|
||||
"description": "Sync product category thumbnails with the newest product image.",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"author": "Roberto Guagliardo | SitiWeb",
|
||||
"author_url": "https://sitiweb.nl/"
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Plugin Name: Siti Category Thumbnails
|
||||
* Description: Sync product category thumbnails with the newest product image.
|
||||
* Version: 1.0.1
|
||||
* Version: 1.0.2
|
||||
* Author: Roberto Guagliardo | SitiWeb
|
||||
* Author URI: https://sitiweb.nl/
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user