• 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

Admin Area Snippets Not Working

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 › General Discussion › Admin Area Snippets Not Working

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 11 years, 7 months ago by Joseph Lee.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 18, 2013 at 4:40 pm #74049
    Joseph Lee
    Member

    remove_action( 'show_user_profile', 'genesis_user_options_fields' );
    remove_action( 'edit_user_profile', 'genesis_user_options_fields' );
    remove_action( 'show_user_profile', 'genesis_user_archive_fields' );
    remove_action( 'edit_user_profile', 'genesis_user_archive_fields' );
    remove_action( 'show_user_profile', 'genesis_user_seo_fields' );
    remove_action( 'edit_user_profile', 'genesis_user_seo_fields' );
    remove_action( 'show_user_profile', 'genesis_user_layout_fields' );
    remove_action( 'edit_user_profile', 'genesis_user_layout_fields' );

    None of these are working. I put them in a function and hooked them in to admin_init, still nothing.

    Have the functionality of these snippets changed ?

    November 19, 2013 at 10:49 am #74186
    butlerblog
    Member

    What you have looks right. remove_action must match up with what is added in terms of priority, but the add_action for all of these uses the default, so you should be OK there.

    I am doing the same thing hooked to admin_init and it works fine. This is what I am using:

    add_action( 'admin_init', 'remove_genesis_user_meta' );
    function remove_genesis_user_meta()
    {
    	remove_filter( 'user_contactmethods', 'genesis_user_contactmethods' );
    
    	remove_action( 'show_user_profile', 'genesis_user_options_fields' );
    	remove_action( 'edit_user_profile', 'genesis_user_options_fields' );
    	remove_action( 'show_user_profile', 'genesis_user_archive_fields' );
    	remove_action( 'edit_user_profile', 'genesis_user_archive_fields' );
    	remove_action( 'show_user_profile', 'genesis_user_seo_fields' );
    	remove_action( 'edit_user_profile', 'genesis_user_seo_fields' );
    	remove_action( 'show_user_profile', 'genesis_user_layout_fields' );
    	remove_action( 'edit_user_profile', 'genesis_user_layout_fields' );
    }
    November 19, 2013 at 10:52 am #74187
    Joseph Lee
    Member

    I have tried hooking the remove_actions in to the admin init. Still no avail.

    I've also looked at a few 3rd party developer themes that use those exact same actions, and they are not firing on the devs site.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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

© 2025 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