Forums

dashboard theme (1 post)

  1. M1chel
    Member
    Posted 4 months ago #

    Hi everyone!

    I'm trying to customize my dashboard.
    among other things I want to get rid of some widgets on the dashboard that aren't useful to me. or actually my users.

    I'm not good at coding so I need a little help on what to put in the function file.

    from tutorials I found this snippet to delete the widgets:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    and this one to adress it only to authors, which is my goal

    global $current_user;
         get_currentuserinfo();
    
         //if current user level is less than 3
         if ($current_user->user_level < 3)

    how do I merge the 2 functions correctly?

    I may have to add the current user thing to other modifications, if you explain me the code you create I may learn and do it myself next time :)

    thanks, any help is welcome

Reply

You must log in to post.

About this Topic