Title: Cannot redeclare function
Last modified: November 13, 2020

---

# Cannot redeclare function

 *  Resolved [Alessandro Valerin](https://wordpress.org/support/users/totaldisclosure/)
 * (@totaldisclosure)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cannot-redeclare-function-3/)
 * Hi guys, I’m using this wonderful plugin and succeeded in creating a custom Bitchute
   follow icon for the snippet, but when tying to replicate the snippet so I can
   add more icons like MeWe and Parler it gives me this error:
 * addtoany The snippet has been deactivated due to an error on line 2:Cannot redeclare
   function addtoany_add_follow_services.
 * Can someone help me, please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-redeclare-function-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [Alessandro Valerin](https://wordpress.org/support/users/totaldisclosure/)
 * (@totaldisclosure)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cannot-redeclare-function-3/#post-13657203)
 * Ok already figured out how to add more than 1 button but now the challenge is
   the correct url
 * > [View post on imgur.com](https://imgur.com/bjoS5Nl)
 * function addtoany_add_follow_services( $services ) {
    $services[‘example_follow_service’]
   = array( ‘name’ => ‘Bitchute’, ‘icon_url’ => ‘[https://i.imgur.com/20ELtNU.png&#8217](https://i.imgur.com/20ELtNU.png&#8217);,‘
   icon_width’ => 36, ‘icon_height’ => 36, ‘href’ => ‘[https://www.bitchute.com/channel/YJmAS1iSOeY3&#8217](https://www.bitchute.com/channel/YJmAS1iSOeY3&#8217);,);
 * add_filter( ‘A2A_FOLLOW_services’, ‘addtoany_add_follow_services’, 10, 1 );
 *  $services[‘example_follow_service_2’] = array(
    ‘name’ => ‘SubscribeStar’, ‘
   icon_url’ => ‘[https://i.imgur.com/AnTF2Ny.png&#8217](https://i.imgur.com/AnTF2Ny.png&#8217);,‘
   icon_width’ => 36, ‘icon_height’ => 36, ‘href’ => ‘[https://www.subscribestar.com/totaldisclosure/&#8217](https://www.subscribestar.com/totaldisclosure/&#8217);,);
 *  $services[‘example_follow_service_3’] = array(
    ‘name’ => ‘GoGetFunding’, ‘icon_url’
   => ‘[https://i.imgur.com/CddnUwN.png&#8217](https://i.imgur.com/CddnUwN.png&#8217);,‘
   icon_width’ => 36, ‘icon_height’ => 36, ‘href’ => ‘[https://www.gogetfunding.com/total-disclosure/&#8217](https://www.gogetfunding.com/total-disclosure/&#8217);,);
 *  return $services;
    } add_filter( ‘A2A_FOLLOW_services’, ‘addtoany_add_follow_services’,
   10, 1 );
 * NOTICE THAT EVEN WHILE SPECIFYING THE CHANNEL IN THE CODE WONT REFLECT ON WHERE
   THE ICON WILL TAKE YOU, IT LANDS ON THE MAIN PAGE OF BITCHUTE, INSTEAD OF MY 
   CHANNEL
 * HELP

Viewing 1 replies (of 1 total)

The topic ‘Cannot redeclare function’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Alessandro Valerin](https://wordpress.org/support/users/totaldisclosure/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/cannot-redeclare-function-3/#post-13657203)
 * Status: resolved