From 9db3a4b8f492fa0de73aa210c80accb5e6a1127b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 9 Jun 2015 14:09:26 -0400 Subject: [PATCH] Update for new user Needs to view only the form submissions --- functions.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/functions.php b/functions.php index 4e21fb4..726eae4 100644 --- a/functions.php +++ b/functions.php @@ -5,4 +5,22 @@ require_once('lib/enqueue-scripts.php'); require_once('lib/navigation.php'); require_once('lib/widgets.php'); require_once('lib/theme.php'); + +function setupLeadMenus() +{ + if ( current_user_can('edit_posts') + && !current_user_can('delete_posts') + && is_admin() + ) { + echo ''; + } +} +add_action('admin_menu', 'setupLeadMenus'); ?> -- 2.17.1