• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove Genesis user permissions from roles

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove Genesis user permissions from roles

This topic is: not resolved

Tagged: Genesis admin menus, User Permissions

  • This topic has 4 replies, 3 voices, and was last updated 7 years ago by spiezz.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 20, 2016 at 9:44 am #187872
    tigaruk
    Member

    I'm using woocommerce with Genesis and for the customer roles it is automatically ticking these boxes for all users. Obviously i don't want customers having any access to those menus and whilst they technically can't see them currently i don't want them being enabled but hidden somewhere that someone could use. How do i make it so these are off by default for all customer user roles?

    User Permissions

    Genesis Admin Menus

    Enable Genesis Admin Menu?
    Enable SEO Settings Submenu?
    Enable Import/Export Submenu?

    June 21, 2016 at 6:49 am #187932
    Victor Font
    Moderator

    This is untested, but it should remove the fields from all users except admins:

    if ( ! current_user_can( 'manage_options' ) ) {
        remove_action( 'show_user_profile', 'genesis_user_options_fields' );
        remove_action( 'edit_user_profile', 'genesis_user_options_fields' );
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 4, 2019 at 9:54 pm #489825
    spiezz
    Participant

    Victor, Thanks for this! I just tried it and am still getting randos galore signing up for my site's blog. So it's doesn't seem to be working- even though akismet is set up and enabled.
    Any other ideas?
    Where is this even set in the admin?
    Thanks
    Karen

    March 5, 2019 at 12:43 am #489827
    Victor Font
    Moderator

    The earlier example is wrapped in a conditional that's checking for specific permissions. If you want to remove the settings for everyone, just add this to functions.php without the conditionals.

    remove_action( 'show_user_profile', 'genesis_user_options_fields' );
    remove_action( 'edit_user_profile', 'genesis_user_options_fields' );

    These are set in the user_meta.php page in the Genesis /lib/admin/ directory. Never change Framework files though. That's what the hooks are for.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 5, 2019 at 9:57 am #489841
    spiezz
    Participant

    Victor,
    Thanks for this!
    If I remove 'show_user_profile' will legitimate users have access to their wp account page that lists purchases etc?

    ??

    Thanks
    K

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble