# Social Profile Fields for Users

> Adds LinkedIn, X and Instagram fields to the Contact Info section of user profiles, ready to show in author boxes.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: users, profile, social
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/social-profile-fields/

## Code

```php
add_filter( 'user_contactmethods', function ( $methods ) {
    $methods['linkedin']  = 'LinkedIn profile URL';
    $methods['x_profile'] = 'X (Twitter) profile URL';
    $methods['instagram'] = 'Instagram profile URL';

    return $methods;
} );
```

## Notes

Read a value in your theme with get_the_author_meta( 'linkedin' ).

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Social Profile Fields for Users" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
