5 Commits

Author SHA1 Message Date
dc9bd75cab chore: update version to 1.0.2 and add README.md
All checks were successful
Build & Release Plugin / release (push) Successful in 8s
2026-02-01 13:50:20 +00:00
actions-bot
c6fbd9584a chore: update manifest.json 2026-02-01 13:46:16 +00:00
31c19a8e24 Bump version to 1.0.1 in plugin header
All checks were successful
Build & Release Plugin / release (push) Successful in 9s
2026-02-01 13:46:09 +00:00
actions-bot
f9e61854dc chore: update manifest.json 2026-02-01 13:42:12 +00:00
0bdbdde5f4 Update release workflow to use a specific commit of wp-plugin-release.yml 2026-02-01 13:41:59 +00:00
4 changed files with 43 additions and 3 deletions

View File

@@ -14,11 +14,10 @@ on:
jobs: jobs:
release: release:
uses: roberto/ci-workflows/.gitea/workflows/wp-plugin-release.yml@bba19f38933f5c468d65ec9b0dc7eff9505de335 uses: roberto/ci-workflows/.gitea/workflows/wp-plugin-release.yml@c6393ed47258d6f040ceeed3994b17b7faa3ef23
with: with:
main_file: siti-category-thumbnails.php main_file: siti-category-thumbnails.php
slug: siti-category-thumbnails slug: siti-category-thumbnails
release_body: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_notes || '' }} release_body: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_notes || '' }}
secrets: secrets:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}

34
README.md Normal file
View 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 products 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/

7
manifest.json Normal file
View File

@@ -0,0 +1,7 @@
{
"plugin_name": "Siti Category Thumbnails",
"description": "Sync product category thumbnails with the newest product image.",
"version": "1.0.1",
"author": "Roberto Guagliardo | SitiWeb",
"author_url": "https://sitiweb.nl/"
}

View File

@@ -2,7 +2,7 @@
/** /**
* Plugin Name: Siti Category Thumbnails * Plugin Name: Siti Category Thumbnails
* Description: Sync product category thumbnails with the newest product image. * Description: Sync product category thumbnails with the newest product image.
* Version: 1.0.0 * Version: 1.0.2
* Author: Roberto Guagliardo | SitiWeb * Author: Roberto Guagliardo | SitiWeb
* Author URI: https://sitiweb.nl/ * Author URI: https://sitiweb.nl/
*/ */