Snippets: Add New User Social Settings for Users (authors)

The following example shows you how you can use the "wpex_get_user_social_profile_settings_array" theme filter to add new social options for your site users to display in the author bio section on the live site.

add_filter( 'wpex_get_user_social_profile_settings_array', function( $array ) {

	// Add new spotify option
	$array['spotify'] = array(
		'label' => 'Spotify',
		'icon'  => 'ticon ticon-spotify',

	// Return options
	return $array;

} );

Snippet Type: PHP

Posted Under: Other

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)