=== Beckin Post Notes === Contributors: beckin Donate link: https://www.buymeacoffee.com/beckin Tags: notes, editorial, admin, metabox, workflow Stable tag: 1.0.6 Requires at least: 6.8 Tested up to: 6.8 Requires PHP: 8.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Lightweight, per-post/page admin notes. Adds a simple metabox on edit screens and a tiny "Note" column in the list table. No menus. No nags. == Description == **Beckin Post Notes** gives editors a fast, private way to attach notes to individual *posts/pages*, right where they work. Notes are stored as post meta and only visible to users who can edit the post. **Why it’s unique** 1. Most "notes" plugins add *global dashboard notes*. This one is **contextual** β€” notes live *on the post or page itself* and appear in the list table. 2. **Zero clutter:** no admin menus, no persistent banners, no database tables. 3. **Clean and compliant:** sanitized input, nonces, capability checks, no direct SQL. **Features** - Side metabox labeled automatically (e.g. "Post Note" or "Page Note"). - "Note" column in the list table with a πŸ—’οΈ icon when a note exists. - New **filter dropdown**: quickly show only posts *with* or *without* notes. - Only users who can edit the post can view or edit its note. - Extendable: use `beckin_postnotes_supported_post_types` to enable notes on custom post types. **Example**: `add_filter( 'beckin_postnotes_supported_post_types', function( $types ) { $types[] = 'your_custom_post_type'; return $types; } );` == Installation == 1. Upload the `beckin-post-notes` folder to `/wp-content/plugins/`. 2. Activate the plugin through the **Plugins** screen in WordPress. 3. Edit any post or page and use the **Post Note** box on the right side. == Frequently Asked Questions == = Can I enable this for custom post types? = Yes. Add a small snippet in a theme or mu-plugin: `add_filter( 'beckin_postnotes_supported_post_types', fn( $types ) => array_merge( $types, [ 'your_cpt' ] ) );` = Where can I view existing notes? = In the **Posts** or **Pages** list table β€” look for the note icon under the **Note** column, or filter by "Has Note" / "No Note". == Changelog == = 1.0.6 = * Formatted the readme.txt file = 1.0.5 = * Ensured full PHPCS/WPCS compliance across all files. * Minor readability and consistency improvements. = 1.0.4 = * Added uninstall cleanup feature to remove plugin data when deleted. * General code quality improvements and internal optimizations. * Improved consistency across files and naming conventions. * Enhanced data handling and security alignment with current WordPress best practices. * Minor refinements to ensure full compatibility with WordPress 6.8+. = 1.0.3 = * Updated prefix to beckin_postnotes. * Improved sanitization, validation, and escaping in the save handler. * Cleaned up readme.txt. * Improved admin CSS handling: now versioned with the plugin. = 1.0.2 = * Updated the readme.txt file = 1.0.1 = * Updated the plugin header. = 1.0.0 = * Initial release with per-post/page notes, list column, and filter dropdown.