=== Developersd Internal Notes Hub ===
Contributors: developersd, sudipdebnath
Author: Sudip Debnath
Author URI: https://sudipdebnath-cloud.github.io/
Tags: backend notes, sticky notes, collaboration, editorial workflow, team communication
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A powerful, collaborative sticky notes and internal communication system for your WordPress dashboard.

== Description ==

**Developersd Internal Notes Hub** transforms your WordPress dashboard into a collaborative workspace. Leave sticky notes, tasks, and reminders for yourself or your team directly on Posts, Pages, Custom Post Types, WooCommerce Products, and User Profiles.

Built for editorial teams, agencies, and store managers, this plugin ensures your team communicates contextually without leaving the WordPress admin. 

It is 100% private: notes are strictly internal and never exposed to the frontend or public REST API.

### 🌟 Core Features

* **Attach Notes to Anything:** Seamlessly add notes to Posts, Pages, Custom Post Types, and User Profiles.
* **Smart Mentions (@username):** Tag team members in a note. The system will automatically notify them via email.
* **Fully Customizable Email Notifications:** Control the exact subject and body of mention emails using shortcodes (`{site_name}`, `{tagged_user}`, `{note_content}`, `{object_link}`).
* **Drag & Drop Reordering:** Visually prioritize your notes by dragging and dropping them into your preferred order.
* **Inline Editing:** Edit your notes instantly without refreshing the page.
* **Color-Coded Priorities:** Mark notes as Low (Green), Normal (Yellow), High (Orange), or Urgent (Red).
* **Lightning Fast (AJAX):** Creating, updating, deleting, and reordering notes happens instantly without page reloads.
* **Custom Database Architecture:** Uses dedicated custom database tables (`wp_sdadmin_notes`) to ensure your `wp_postmeta` table doesn't get bloated.
* **Granular Permissions:** Integrates with native WordPress capabilities so you can control exactly which roles can view, create, edit, or manage notes.

### 🔒 Security & Performance

* Uses strict nonce verification for all AJAX requests.
* Prepared SQL statements for all database queries to prevent SQL injection.
* Sanitization and escaping on all user inputs and outputs.
* Zero impact on frontend page load times.

== Installation ==

1. Upload the `developersd-internal-notes-hub` folder to the `/wp-content/plugins/` directory, or install the ZIP file via the WordPress Plugins menu.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Upon activation, the plugin will automatically create its custom database tables and assign note-management capabilities to the Administrator role.
4. Navigate to any Post, Page, Custom Post Type, or User Profile edit screen to see the new Internal Notes Hub meta box.
5. Navigate to **Internal Notes Hub → Settings** in the dashboard menu to configure your email notification templates.

== Frequently Asked Questions ==

= Will these notes show up on my live website? =
No. Developersd Internal Notes Hub is strictly a backend tool. The notes will never appear on the frontend of your website or in the public REST API.

= Can I use it with WooCommerce? =
Yes! The notes meta box will automatically appear on WooCommerce Product edit screens.

= How do email notifications work? =
When creating or editing a note, type `@` followed by a user's login or slug (e.g., `@admin` or `@johndoe`). If the user exists, they will be assigned to the note and receive an email with a direct link to the post/page. You can toggle these emails on/off in the settings.

= Can I reorder the notes? =
Yes. Hover over the header of any note to grab the drag handle (six dots), and drop it wherever you prefer. The order is saved instantly per-post or per-user.

= Who can delete notes? =
By default, users can only delete notes they created themselves. Administrators (or any role granted the `sdadmin_notes_manage` capability) can edit and delete any note.

== Screenshots ==

1. **The Notes Interface:** The beautiful, color-coded sticky note interface alongside the WordPress editor.
2. **Inline Editing:** Edit note content and change priority on the fly.
3. **Settings Panel:** Customize email templates and enable/disable notifications.
4. **Smart Mentions:** Tagging users using @username inside the content box.

== Changelog ==

= 1.0.0 =
* Initial Release.
* Feature: Custom Database Engine.
* Feature: AJAX CRUD (Create, Read, Update, Delete).
* Feature: Drag and Drop reordering.
* Feature: @username mentions and dynamic assignments.
* Feature: Customizable Email Notifications system.
* Feature: Color-coded priority system.