I was looking to add a button came across this post the found how on github github
…in my case I used Code Snippets
function addtoany_add_share_services( $services ) {
$services['example_share_service'] = array(
'name' => 'Example Share Service',
'icon_url' => 'https://www.example.com/my-icon.svg',
'icon_width' => 32,
'icon_height' => 32,
'href' => 'https://www.example.com/share?url=A2A_LINKURL&title=A2A_LINKNAME',
);
return $services;
}
add_filter( 'A2A_SHARE_SAVE_services', 'addtoany_add_share_services', 10, 1 );
As I used a link back to my own site I replaced share?
url=A2A_LINKURL&title=A2A_LINKNAME with https://www.example.com/example which worked fine for the purpose I had.