Support » Plugin: Yoast SEO » Hide WordPress SEO from Profile

  • WordPress version: 3.5.1
    WordPress SEO version:

    I’m trying to remove the WordPress SEO settings from the profile page, but I can’t get it disabled. I’ve installed Hide User Profile Fields in order to do that, but it isn’t removing it completely( just the title).

    I guess those two fields should be hidden wpseo_author_title and wpseo_author_metadesc but I don’t know how would it be possible.

    Is there any way to do it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • try a css trick could be go
    applying that class to an element
    .hide {
    display: none;

    This is the code that adds the extra fields in profile page:

    	 * Add the inputs needed for SEO values to the User Profile page
    	 * @param object $user
    	function user_profile( $user ) {
    		if ( !current_user_can( 'edit_users' ) )
    		$options = get_wpseo_options();
    		wp_nonce_field( 'wpseo_user_profile_update', 'wpseo_nonce' );
        <h3 id="wordpress-seo"><?php _e( "WordPress SEO settings", 'wordpress-seo' ); ?></h3>
        <table class="form-table">
                <th><?php _e( "Title to use for Author page", 'wordpress-seo' ); ?></th>
                <td><input class="regular-text" type="text" name="wpseo_author_title"
                           value="<?php echo esc_attr( get_the_author_meta( 'wpseo_title', $user->ID ) ); ?>"/></td>
                <th><?php _e( "Meta description to use for Author page", 'wordpress-seo' ); ?></th>
                <td><textarea rows="3" cols="30"
                              name="wpseo_author_metadesc"><?php echo esc_html( get_the_author_meta( 'wpseo_metadesc', $user->ID ) ); ?></textarea>
    		<?php     if ( isset( $options['usemetakeywords'] ) && $options['usemetakeywords'] ) { ?>
                <th><?php _e( "Meta keywords to use for Author page", 'wordpress-seo' ); ?></th>
                <td><input class="regular-text" type="text" name="wpseo_author_metakey"
                           value="<?php echo esc_attr( get_the_author_meta( 'wpseo_metakey', $user->ID ) ); ?>"/></td>
    		<?php } ?>

    When you remove the table out of the code, the fields disappear from the profile page, I don’t want to remove code from plugins, but is there a way to still hide it or remove it from functions.php for example?

    I want this too!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide WordPress SEO from Profile’ is closed to new replies.