grant multiple roles access to specific admin menu item

You shouldn’t use Roles to handle permissions for your menu page. Instead, use capabilities, and then assign those capabilities to whichever roles should have access. For example, instead of creating a customrole role, use a custom capability like manage_custom_plugin: add_menu_page( ‘Custom-Plugin’, ‘Custom-Plugin’, ‘manage_custom_plugin’, ‘custom-plugin’, ‘init_custom_menu_page’ ); Now, using the Members plugin you can enter manage_custom_plugin … Read more

How To Remove Import/Export Option From Tools?

You may use the hook admin_menu() and function remove_submenu_page() The solution assumed the following conditions run it in theme functions.php, you may put somewhere else with different tweaking, but the following is proved to work in functions.php you know how to test the user access level by yourself, because the following solution is focus on … Read more

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