T
T
thehighhomie2016-04-02 23:39:32
WordPress
thehighhomie, 2016-04-02 23:39:32

Wordpress: is it possible to make the user profile not in the control panel?

Now I want to create a second plugin for the WP personal account. The first one did everything from scratch, and a separate page for the profile. I myself started working with WP not so long ago, but it seems to me that the first time I did it was not very correct. Maybe there is some way to remove the control panel from the standard profile not for admins?
PS: I don't need plugins. I want to do it myself)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Natarov, 2016-04-02
@thehighhomie

in functions.php

if (!current_user_can('administrator')):
  show_admin_bar(false);
endif;

Removes the control panel for everyone except the admin.
See how the panel knocks on the profile and display what you need on a separate page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question