Dahu Notes
Permet de mettre en avant des notes. Projet abandonné pour intégration dans dahu-interface
by Hugo Vial-Jaime · github.com/epilouptique/dahu-notes · website
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/epilouptique/dahu-notes/archive/refs/heads/main.zipA lightweight WooCommerce extension that visually highlights order notes that were genuinely typed by a human, so store managers can spot them at a glance among the noise of automatically generated notes.
Description
WooCommerce order notes quickly fill up with system-generated entries: order status changes, stock level adjustments, refunds, tracking numbers, payment confirmations, and so on. Manually written notes — the ones that actually carry context an operator wanted to leave for a colleague — get lost in that noise.
Dahu Notes detects the automatically generated notes using a configurable set of pattern rules and leaves them untouched, while giving every other private note (the ones typed by hand) a distinct background and shadow so they stand out immediately on the order screen.
It works with both the legacy WooCommerce order storage and the newer High-Performance Order Storage (HPOS).
Features
- Automatically flags system/plugin-generated order notes based on their content, without touching notes already natively marked as customer or system notes.
- Highlights manually written private notes with a distinct background and shadow on the order edit screen.
- Settings page to enable/disable the highlight and customize the colors used for handwritten notes and the customer-note header.
- Developer filter (
dahu_notes_highlight_auto_patterns) to extend or override the list of patterns used to detect auto-generated notes, useful for shipping/invoicing add-ons that add their own note formats. - Compatible with both classic order storage and HPOS.
Installation
- Upload the plugin folder to
/wp-content/plugins/, or install the zip through the WordPress admin (Plugins → Add New → Upload Plugin). - Activate the plugin through the Plugins menu in WordPress.
- WooCommerce must be installed and active.
Configuration
Go to WooCommerce → Dahu Notes to:
- Enable or disable the visual highlight.
- Choose the background color used for handwritten notes.
- Choose the background color used for the customer-note header.
Developers can add extra detection patterns via the
dahu_notes_highlight_auto_patterns filter:
add_filter( 'dahu_notes_highlight_auto_patterns', function ( $patterns ) {
$patterns[] = '/^Shipped via/i';
return $patterns;
} );
Changelog
1.1.0
- Added a settings page (WooCommerce → Dahu Notes) to enable/disable the highlight and customize colors.
- Added standard plugin action link ("Settings") and plugin row meta.
1.0.0
- Initial release: automatic detection of system-generated order notes and visual highlight of manually written ones.
License
GPL v2 or later — see LICENSE.