1

I want to customize dashboard or 1st page when user login into admin panel. This will be for Author/editor where he/she will only see some tabs/button of the pages and posts, by click them he/she can land on the page/post edit page. ;

I am pretty sure that "index.php" file will be edit under "wp-admin" folder but I just need some step by step guideline on this.

2nd thing I want Publish/update button to be shown below the content editor while hiding the right sidebar. I have tried it but couldn't find a clue. So any hep would be much appreciated.

0

Basic implementation:

  1. Create a page for the frontend (and optionally a template).
  2. Then add the following code to your functions.php:

function login_redirect_capability() {
      if ( current_user_can('author') || current_user_can('editor')  ){
          return 'url-of your custom page';
      }
    }
add_filter('login_redirect', 'login_redirect_capability');

This will redirect them to the page you created. If you want to recode the dashboard as in the Wordpress admin backend, you can look at the code in this plugin to see how it's done. However, if you're new to this, I highly suggest against that. An alternative to a backend dashboard would be something like this.

If you have a site that requires members I suggest looking into using a membership plugin which would make that a whole lot easier.

  • Thanks Bryan, can you tell me how can I put buttons that will hyperlink to pages and posts edit. e.g. "Home" button will show-up in dashboard and if we click, it should redirect to home edit page. – Mueedullah K. Jan 18 '16 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.