Title: View own notes only
Last modified: August 22, 2016

---

# View own notes only

 *  Resolved [Gatera](https://wordpress.org/support/users/gatera/)
 * (@gatera)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/view-own-notes-only/)
 * Hi,
 * Is it possible that every user only sees the notes they have created, not everyone
   else’s.
 * Regards
 * [https://wordpress.org/plugins/wp-dashboard-notes/](https://wordpress.org/plugins/wp-dashboard-notes/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/view-own-notes-only/#post-5414616)
 * Hi Gatera,
 * By default this is possible by toggling the ‘visibility’ icon to ‘me’ so only
   you view that note. I think that is not what you’re looking for though (since
   its a user needed action).
 * Therefore I’ve just created this custom code, this should only display the notes
   created by the user, for everyone…
 *     ```
       global $wp_dashboard_notes;
       remove_action( 'wp_dashboard_setup', array( $wp_dashboard_notes, 'wpdn_init_dashboard_widget' ) );
       add_action( 'wp_dashboard_setup', 'custom_wpdn_init_dashboard_widget' );
       function custom_wpdn_init_dashboard_widget() {
   
       	global $wp_dashboard_notes;
       	$notes = $wp_dashboard_notes->wpdn_get_notes();
   
       	foreach ( $notes as $note ) :
   
       		$note_meta 	= $wp_dashboard_notes->wpdn_get_note_meta( $note->ID );
       		$user 		= wp_get_current_user();
   
       		// Skip if private
       		if ( $user->ID != $note->post_author ) :
       			continue;
       		endif;
   
       		// Add widget
       		wp_add_dashboard_widget(
       			'note_' . $note->ID,
       			'<span contenteditable="true" class="wpdn-title">' . $note->post_title . '</span><div class="wpdn-edit-title dashicons dashicons-edit"></div><span class="status"></span>',
       			array( $wp_dashboard_notes, 'wpdn_render_dashboard_widget' ),
       			'',
       			$note
       		);
   
       	endforeach;
   
       }
       ```
   
 * Copy paste this to your themes functions.php
 * Its tested, but not that extensive.
 * Let me know if that works out for you.
 * Thanks,
    Jeroen
 *  Thread Starter [Gatera](https://wordpress.org/support/users/gatera/)
 * (@gatera)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/view-own-notes-only/#post-5414624)
 * Hi Jeroen,
 * Thank you for the quick reply and the custom code! It works great!
 * Regards,
 * Vital

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘View own notes only’ is closed to new replies.

 * ![](https://ps.w.org/wp-dashboard-notes/assets/icon-256x256.png?rev=1090348)
 * [WP Dashboard Notes](https://wordpress.org/plugins/wp-dashboard-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dashboard-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dashboard-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dashboard-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dashboard-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dashboard-notes/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Gatera](https://wordpress.org/support/users/gatera/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/view-own-notes-only/#post-5414624)
 * Status: resolved