[ad_1]
I actually added this code into addtoany.services.php
Your changes to any plugin files will get wiped out after every plugin update, so I recommend following the FAQ on adding a custom follow button.
Just change https://www.example.com/my-minds-icon.svg and add the following PHP code to a “functionality” plugin such as the Code Snippets plugin:
function addtoany_add_follow_services( $services ) {
$services['example_follow_service'] = array(
'name' => 'Minds',
'icon_url' => 'https://www.example.com/my-minds-icon.svg',
'icon_width' => 32,
'icon_height' => 32,
'href' => 'https://www.minds.com/${id}',
);
return $services;
}
add_filter( 'A2A_FOLLOW_services', 'addtoany_add_follow_services', 10, 1 );
