How to Remove Default Author Profile Fields in WordPress

How to Remove Default Author Profile Fields in WordPress

This write-up will explain how to remove default author profile fields in WordPress.

When making an author profile on your WordPress site, you will find some default fields to fill up. If you need to remove any field from an author profile in WordPress, you can use the code in your theme files.

WordPress displays standard fields in the author’s profile by default. You can have a look at it in the following example. 

By removing specific fields, You can customize your site according to your needs and make the WordPress admin board more manageable. In order to remove the default author profile field, let us move to the code you need to place in your WordPress theme files.

1. Removing default social media fields

WordPress shows some specific fields in the author’s profile by default.

The author profile presents some social media fields such as Yahoo IM, Jabber/Gtalk, or AIM. Place the following code snippet in your theme functions.php file to remove these.

 add_filter('user_contactmethods', function($methods) {
unset($methods['aim'], $methods['yim'], $methods['jabber']);

return $methods;
}, 999);

 

2. Removing author profile field added by any plugin

Sometimes many plugins add additional author profile fields to your WordPress website.

To remove any additional field from the author’s profile and restrict WP plugins from adding further fields in the profile area, You can use the following code snippet and place it into your theme function.php file.

 add_filter('user_contactmethods', function() {

    return array();

}, 999);

After adding the above code, any plugins will not alter your author profile section.

To conclude

The article is all about how you can customize your author profile section according to your need. WordPress shows some standard fields in the author’s profile by default. After reading the article, I hope you will be able to answer How you can remove default author profile fields in WordPress by using code snippets. Also, you can restrict other plugins to add an additional field to the author profile.

you can check out another article on how to list all authors from a blog in wordpress.

Leave a Comment