$social_url_value ) { if ( $social_url_value ) { $social_url_empty = false; break; } } if ( ! $social_url_empty ) { ?> esc_html__( 'Facebook Profile URL', 'showme' ), 'twitter' => esc_html__( 'Twitter Profile URL', 'showme' ), 'instagram' => esc_html__( 'Instagram Profile URL', 'showme' ), 'pinterest' => esc_html__( 'Pinterest Profile URL', 'showme' ), 'youtube' => esc_html__( 'YouTube Profile URL', 'showme' ), 'telegram' => esc_html__( 'Telegram Profile URL', 'showme' ), 'vimeo' => esc_html__( 'Vimeo Profile URL', 'showme' ), 'soundcloud' => esc_html__( 'SoundCloud Profile URL', 'showme' ), 'spotify' => esc_html__( 'Spotify Profile URL', 'showme' ), 'dribbble' => esc_html__( 'Dribbble Profile URL', 'showme' ), 'behance' => esc_html__( 'Behance Profile URL', 'showme' ), 'github' => esc_html__( 'GitHub Profile URL', 'showme' ), 'ok' => esc_html__( 'Odnoklassniki Profile URL', 'showme' ), 'vk' => esc_html__( 'VK Profile URL', 'showme' ), 'xing' => esc_html__( 'Xing Profile URL', 'showme' ), 'linkedin' => esc_html__( 'LinkedIn Profile URL', 'showme' ), 'twitch' => esc_html__( 'Twitch Profile URL', 'showme' ), 'flickr' => esc_html__( 'Flickr Profile URL', 'showme' ), 'snapchat' => esc_html__( 'Snapchat Profile URL', 'showme' ), 'medium' => esc_html__( 'Medium Profile URL', 'showme' ), 'weibo' => esc_html__( 'Weibo Profile URL', 'showme' ), 'wechat' => esc_html__( 'WeChat Profile URL', 'showme' ), 'tumblr' => esc_html__( 'Tumblr Profile URL', 'showme' ), 'reddit' => esc_html__( 'Reddit Profile URL', 'showme' ), 'bloglovin' => esc_html__( 'Bloglovin Profile URL', 'showme' ), 'rss' => esc_html__( 'RSS Profile URL', 'showme' ), ); } add_filter( 'user_contactmethods', 'vs_get_author_fields', 1000, 1 ); // Author Social Links function vs_author_social_links( $author ) { $links = vs_get_author_fields(); $list = array(); $url = get_the_author_meta( 'url', $author ); if ( $url ) { $list[] = array( 'label' => esc_html__( 'Website', 'showme' ), 'key' => 'website', 'url' => $url, ); } foreach ( $links as $key => $label ) { $author_url = get_the_author_meta( $key, $author ); if ( $author_url ) { $list[] = array( 'label' => $label, 'key' => $key, 'url' => $author_url, ); } } if ( $list ) { ?>