1

I was trying to create a template to customize my WP admin dashboard, not only a css mod but a entirely renew to my customers.

I've successfully created a page template for a custom login page, and it worked fine, but now, the biggest problem is how to redirect admin pages to custom ones? And plus, how to call admin functions on this page?

Any help will be appreciated, thanks

1 Answer 1

1

Codex has documentation on creating custom login pages - Customize Login Form > Make Custom Login Page, using wp_login_form() function. This should load everything necessary to log user in.

However, unlike login, replacing admin would be much more involved and have many approaches. Typically to access admin function in non-admin context admin PHP files have to be loaded manually which is rather fragile and prone to errors on WordPress version updates.

1
  • Hi @Rarst, Thanks for comment. You are right, I've a total custom login page, however, using wp_signon with a ajax call, that worked fine. I also thought in a ajax solution to admin dashboard, just like a <iframe> to grab things from wp admin and skin it using this same ajax call to looks like my new base stylesheet, but it involves a lot of ajax call and replacement, it will considerably slow down everything... I'm developing it in a localhost, and it works fine, but I'm sure that in live it will be a turtle.. I'm trying to figure out another way...
    – Santoro
    May 2, 2013 at 8:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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