# Noted! Plugin Developer Notes This file contains code snippets and maintenance tasks intended for development and admin use only. Use these snippets with caution and remove them once tasks are completed to prevent unintended actions. --- ## Bulk Delete All Notes This snippet will delete all notes created by the Noted! plugin. To execute this deletion, temporarily add the following function to your theme’s `functions.php` file. ### Code Snippet ```php // Temporary function to delete all 'noted_note' posts. function delete_all_noted_notes() { if (is_admin() && current_user_can('administrator')) { $noted_notes = get_posts(array( 'post_type' => 'noted_note', 'numberposts' => -1, )); foreach ($noted_notes as $note) { wp_delete_post($note->ID, true); // Permanently delete } // Optional: Admin notice to confirm deletion. add_action('admin_notices', function() { echo '
All Noted! notes have been deleted.