Buddy Press restrict the capability to edit users

Ok I got an solution for my case. Maybe a bit confusing but I did’nt saw anothere possibility to do this. If you know a better way let me know. First I hide the Edit Item in the Admin Menu: add_action( ‘admin_bar_menu’, array($this,’sa_classbook_remove_admin_bar_items’), 999 ); function sa_classbook_remove_admin_bar_items(){ global $wp_admin_bar; $wp_admin_bar->remove_node(‘user-admin’); } Then I check the … Read more

Enable plugins for a specific user role

You can try something like this if ( is_myrole() ) { add_action( ‘some_menu’, ‘my_plugin_menu’ ); } function my_plugin_menu() { add_options_page(‘My Plugin Settings’, ‘My Plugin’, ‘manage_options’, ‘my-plugin-settings’, ‘my_plugin_admin_page’); }

Administrator Posts

You can possibly try the following: Install ACF plugin and can create a front end page to edit any posts. (I have done this) Next, write a code to make sure that the post is not authored by the administrator. (I didnt try this out yet)

Remove dashboard links from wordpress

you should follow the below code and also see the wordpress docs <?php function remove_menus(){ remove_menu_page( ‘index.php’ ); //Dashboard //remove_menu_page( ‘jetpack’ ); //Jetpack* //remove_menu_page( ‘edit.php’ ); //Posts //remove_menu_page( ‘upload.php’ ); //Media //remove_menu_page( ‘edit.php?post_type=page’ ); //Pages //remove_menu_page( ‘edit-comments.php’ ); //Comments //remove_menu_page( ‘themes.php’ ); //Appearance //remove_menu_page( ‘plugins.php’ ); //Plugins //remove_menu_page( ‘users.php’ ); //Users //remove_menu_page( ‘tools.php’ ); //Tools … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)