skip to Main Content

Snippet: Add New Options to Social Links Element

A snippet example showing how you can add new social link options to the Total Visual Composer Social Links module

/**
 * Add New Options to VC Social Links Module.
 *
 * @link https://total.wpexplorer.com/docs/snippets/vc-social-links-filter/
 */
add_filter( 'vcex_social_links_profiles', function( $array ) {

	// Add new option for Etsy
	$array['etsy'] = array(
		'label' => 'Etsy',
		'icon_class' => 'ticon ticon-etsy',
	);

	// Return options
	return $array;

} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend WPCode)
Back To Top