Viewing 1 replies (of 1 total)
  • Plugin Author cartpauj

    (@cartpauj)

    The idea of this plugin is that it’s admin’s only who can view the notes. You can get around this though by installing a plugin like My Custom Functions and pasting the following into it:

    function custom_user_notes_show_field($wp_user) {
      //Don't show the non-editable version to admins
      if(current_user_can('list_users'))
        return;
    
      $notes = get_user_meta($wp_user->ID, 'user-notes-note', true);
    
      ?>
        <h3><?php _e('User Notes', 'user-notes'); ?></h3>
    
        <table class="form-table">
          <tbody>
            <tr>
              <td colspan="2">
                <div><?php echo wpautop($notes); ?></div>
              </td>
            </tr>
          </tbody>
        </table>
      <?php
    }
    add_action('show_user_profile', 'custom_user_notes_show_field');

    *Edited to change function name to prevent conflict

Viewing 1 replies (of 1 total)
  • The topic ‘Can this be read only for the user’ is closed to new replies.