I am an Admin of wordpress website and I have created one user with Editor role, I have installed one plugin Pretty Link(https://wordpress.org/plugins/pretty-link/) this plugin shows its menu on Admin page but not on Editors page.
I want to display this menu option on Editor page also, so how to do this? I am using following code for my other menus:
if ( ! function_exists( 'toplevel_admin_menu_pages' ) ) {
function toplevel_admin_menu_pages(){
if ( !current_user_can('administrator') ) { // If the user is not the administrator remove and add new menus
remove_menu_page( 'edit.php' ); // Posts
remove_menu_page( 'edit.php?post_type=page' ); // Pages
remove_menu_page( 'upload.php' ); // Media
remove_menu_page( 'tools.php' ); // Contact From 7
add_menu_page( 'Home', 'Home', 'edit_posts', 'post.php?post=8&action=edit', '', 'dashicons-admin-home', 25 );
add_menu_page( 'Life Insurance', 'Life Insurance', 'edit_posts', 'post.php?post=31&action=edit', '', 'dashicons-id-alt', 26 );
add_menu_page( 'Income Protection', 'Income Protection', 'edit_posts', 'post.php?post=40&action=edit', '', 'dashicons-lock', 27 );
add_menu_page( 'Superannuation', 'Superannuation', 'edit_posts', 'post.php?post=43&action=edit', '', 'dashicons-search', 28 );
// add_menu_page( 'Home Loan', 'Home Loan', 'edit_posts', 'post.php?post=47&action=edit', '', 'dashicons-building', 29 );
add_menu_page( 'About us', 'About Us', 'edit_posts', 'post.php?post=50&action=edit', '', 'dashicons-universal-access-alt', 30 );
add_menu_page( 'Contact us', 'Contact Us', 'edit_posts', 'post.php?post=55&action=edit', '', 'dashicons-email-alt', 31 );
add_menu_page( 'Settings', 'Settings', 'edit_posts', 'post.php?post=16&action=edit', '', 'dashicons-admin-generic', 32 );
add_menu_page( 'Pretty Links', 'Pretty Links', 'edit_posts', 'post.php?post=16&action=edit', '', 'dashicons-admin-generic', 32 );
}
}
add_action( 'admin_menu', 'toplevel_admin_menu_pages' );
}