I have a weird problem. I have a social sharing plugin that is fetching social shares via the social network's APIs. However, if a user changes their URL structure, most social networks will no longer show the shares for the new URL, because the shares occurred on the old URL.
Is it possible to fetch a permalink from WordPress in a different format than what it is set at in the user permalinks settings? This would allow me to check against the alternate format (old shares) and the current format (new shares).
WordPress has the following permalink structures available: Default, Day and name, Month and name, Numeric, and Post name.
I would love to be able to use get_permalink() and check that against the social APIs (which is what I currently do), and also be able to use some sort of function like get_alternate_permalink('Numeric') so that I can check both against the API and add them up (for networks that don't already honor 301's in their total).
Any ideas?