R
R
Roman Savitsky2016-03-24 15:13:48
WordPress
Roman Savitsky, 2016-03-24 15:13:48

How to display the site header in the user's personal account?

How to display the site header in the user's personal account and delete the amin bar accordingly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zhainar, 2016-03-24
@zhainar

Admin bar can be deleted like this (condition is optional):

if( function_exists('current_user_can') && !current_user_can('manage_options') )
{
  add_filter('show_admin_bar', '__return_false');
}

The first one needs to be looked at.

R
Roman Savitsky, 2016-03-24
@PRC

ac63730aef0b474198fb7c48d7e0492b.jpg
in this personal account, you need to sting the admin bar, and display the site header

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question