WordPress.org

Ready to get started?Download WordPress

Forums

Extra User Details
Help Tab in new Versions (4 posts)

  1. Jesús Fernando Carrasco Mendoza
    Member
    Posted 2 years ago #

    The help tab it's not working with the new WordPress Version. I added this:

    $hook = 'users_page_extra_user_details';
    $screen = WP_Screen::get($hook);
    $id = 'extra_user_details_help_id';
    $title = "Extra User Details";
    $callback = false;
    $screen->add_help_tab( array(
       'id' => $id, //unique id for the tab
       'title' => $title, //unique visible title for the tab
       'content' => $help, //actual help text
       'callback' => $callback //optional function to callback
    ) );

    Instead of:

    add_contextual_help( 'users_page_extra_user_details', $help );

    http://wordpress.org/extend/plugins/extra-user-details/

  2. joost de keijzer
    Member
    Posted 2 years ago #

    Hi jeffecame and Vadimk,

    Edited code above to also support pre-3.3 installations.

    $hook = 'users_page_extra_user_details';
      $screen = WP_Screen::get($hook);
      if ( method_exists( $screen, 'add_help_tab' ) ) {
        // WordPress 3.3
        $id = 'extra_user_details_help_id';
        $title = "Extra User Details";
        $callback = false;
        $screen->add_help_tab( array(
          'id' => $id, //unique id for the tab
          'title' => $title, //unique visible title for the tab
          'content' => $help, //actual help text
          'callback' => $callback //optional function to callback
        ) );
      } else {
        // WordPress 3.2
        add_contextual_help( 'users_page_extra_user_details', $help );
      }

    In the original file replace the line containing add_contextual_help() with above code.

  3. Jesús Fernando Carrasco Mendoza
    Member
    Posted 1 year ago #

    Thank u very much joostdekeijzer

  4. pitufian
    Member
    Posted 1 year ago #

    hi, i just want to know how many extra details can be added? i use another custom user meta plugin but this plugin is more "clean" in the database(wp_usermeta), but i introduce a lot of extra details, almost 1050 extra fields is whta i need, can this be done with this plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic