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' ) )
return;
$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">
<tr>
<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>
</tr>
<tr>
<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>
</td>
</tr>
<?php if ( isset( $options['usemetakeywords'] ) && $options['usemetakeywords'] ) { ?>
<tr>
<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>
</tr>
<?php } ?>
</table>
<br/><br/>
<?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?