Is there a way to force a social sharing plugin to use the shortlink each of my WP posts automatically gets (YOURLS service in my case) to pass to the social service the visitor clicked, instead of permalink?
If not, it has to be built with that functionality? (not that I have found any that does that)
I very much doubt you can universally “trick” all plugins without touching at least some of some plugin code, but I think your best bet would be filters on the_permalink
and post_link
, and maybe pre_post_link
. Even if you got that working it would be pretty “heavy”. That is, a lot of processing happens before you get to interrupt things.