Plugin Author
Sarah
(@shen045)
Hi Pete,
Yes, that sounds like the best way to do it if you always want to just share the page url and not have it tied to a specific post or page.
The other action hooks are designed to work inside the loop – this is the only one that works outside it.
Maybe others will have some experiences to comment on, but so far the only issue anyone’s had with this approach is if using share counts, some web servers block the ajax call because of the URL in it. If you aren’t showing share counts, or your server doens’t have these settings, then it shouldn’t be an issue.
Cheers,
Sarah
Thanks for responding Sarah.
I don’t use the share counts at this time. Maybe later when/if I get a bunch of shares!
Pete