Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new filter for the link URL #80

Closed
amdrew opened this issue Dec 17, 2016 · 2 comments
Closed

Add new filter for the link URL #80

amdrew opened this issue Dec 17, 2016 · 2 comments

Comments

@amdrew
Copy link

amdrew commented Dec 17, 2016

Hey Bill & Jared!

Would you be so kind as to consider adding a filter specifically for $link['url']?

I see the ea_share_count_link filter (https://github.com/jaredatch/EA-Share-Count/blob/master/includes/class-front.php#L502) but unfortunately that's a bit too late since $link['link'] is passed to the anchor link.

I'd like to integrate your plugin withan add-on for AffiliateWP (https://affiliatewp.com), allowing affiliates (when logged in) to share the post/page/etc URL and have their referral ID/username automatically appended to the shared URL. So instead of:

http://mysite.com/my-awesome-post/

The URL could be

http://mysite.com/my-awesome-post/ref/123/ (where 123 is their affiliate ID)

I'll submit a PR in just a few to provide a possible implementation to discuss. Thanks!

@amdrew
Copy link
Author

amdrew commented Dec 17, 2016

There's probably a cleaner way but something like that ^

@amdrew
Copy link
Author

amdrew commented Dec 18, 2016

Thanks @billerickson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant