RX1 Ingredients
WooCommerce ingredient library + product assignment + tooltips + purifier
by Parham Fatemi · github.com/parhamfa/rx1-ingredients · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/parhamfa/rx1-ingredients/archive/refs/heads/main.zipWordPress plugin for WooCommerce that provides a master ingredient library (CPT), product assignment, frontend ingredient tooltips, and an Ingredients Purifier tool to migrate legacy [html_block] ingredients into the new system.
Repository: https://github.com/parhamfa/rx1-ingredients
Features
- Ingredient library:
rx1_ingredientcustom post type (title = ingredient name, editor = tooltip HTML) - Assign ingredients to products: WooCommerce product data tab with SelectWoo (AJAX search)
- Frontend rendering:
[rx1_ingredients]shortcode that outputs the “2nd design” grid (.ing-grid-container,.ing-item,.ing-name,.ing-tooltip) - Tooltip sanitization: safe HTML whitelist + removes decorative Kashida/dash runs
- Ingredients Purifier (WooCommerce submenu): scans legacy
[html_block]usage, stages occurrences, clusters by normalized names, suggests duplicates, lets you merge/detach, and batch-creates ingredients - CSV: export approved clusters or all created ingredients, import
name,tooltip_htmlin batches - Persian UI: built-in
fa_*translations (runtime mapping) so it’s usable immediately on Persian sites
Requirements
- WordPress 6.0+
- PHP 7.4+
- WooCommerce installed/active
Usage
- Create ingredients under WooCommerce → Ingredients (CPT list)
- Assign ingredients on a product edit screen (Ingredients tab)
- Render on frontend using shortcode:
[rx1_ingredients]
Notes
- This plugin ships with a lightweight Persian translation override via
gettext. If you later prefer standard.po/.motranslations, you can add compiled files underlanguages/and remove the override.
License
GPL-2.0-or-later