Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCindy Bryant
3,700 PointsWordPress Admin Panel & Theme Options Panel Plugins
My apologies in advance if this thread already exists.
Questions:
- ) In WordPress Development do you remove the AG Custom Menu, and/or Custom Dashboard Widget Plugins, once you have made the changes to the theme as needed, or do you leave it?
2.) If you leave it, where does it typically reside? (meaning is the plugin still visible on the client/user end? 3.) Same for the Custom Post Types UI, and Advanced Custom Fields plugins, are those removed prior to migrating the site to WP from localhost to live site?
Thanks!
2 Answers
Aleksej Dix
8,087 PointsYou can hide this Post Types from the user menu
function remove_acf_menu()
{
$admins = array(
'admin',
'johndoe'
);
$current_user = wp_get_current_user();
if( !in_array( $current_user->user_login, $admins ) )
{
remove_menu_page('edit.php?post_type=acf');
}
}
add_action( 'admin_menu', 'remove_acf_menu', 999 );
http://www.advancedcustomfields.com/resources/how-to/how-to-hide-acf-menu-from-clients/
Aleksej Dix
8,087 PointsWell, i always hide this menus from the client.
Cindy Bryant
3,700 Points I'm going to take a few minutes to read the info in the link you provided. Thanks for your help! :)
Cindy Bryant
3,700 PointsCindy Bryant
3,700 PointsThank you. Moving forward, would you say this is the best practice in general?
Cindy Bryant
3,700 PointsCindy Bryant
3,700 PointsThank you for this link and your time, I appreciate it. I'll be bookmarking it. So much to still figure out.
Aleksej Dix
8,087 PointsAleksej Dix
8,087 PointsYou are welcome