D
D
Dmitry Filandor2015-09-24 18:48:31
WordPress
Dmitry Filandor, 2015-09-24 18:48:31

How to disable extra fields and options when creating a post?

Hello! There is a diary service (wordpress + budipress), all users have a certain role, they can create a record, but this is all displayed to them: c2n.me/3nW9T6T how can I hide or cut out everything I want (which should not be available to a simple user) ? Maybe a plugin or a hack....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2015-09-25
@LifeAct

You can add custom css to your admin by typing something like this in your functions.php:

function my_admin_theme_style() {
    if(1 !== get_current_user_id()){ //Если пользователь - не главный админ
    	wp_enqueue_style('custom-admin-hide', get_template_directory_uri() . '/css/hide.css'); //ваш ccss
  }
}
add_action('admin_enqueue_scripts', 'my_admin_theme_style');

And in the css itself, just hide these blocks through display: none by id or class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question