Bitly plugin doesn’t hook into wp_get_shortlink()?
-
I went through the plugin code.
NOWHERE does it hook into
wp_get_shortlink(). There are two possible filters:pre_get_shortlinkandget_shortlink. Bitly doesn’t use either. Therefore… no other plugin that gets the shortlink can use the Bitly shortlink. Right?Am I missing something?
I use
wp_get_shortlink()in my theme and it’s only returning the?p=000permalink (as per expected default WordPress behavior). Also, Jetpack is sending the?p=000link to Facebook and Twitter. Not the Bitly shortlink. So, it seems to me something critical is missing from this plugin. Namely, hooking into the default wordpress shortlink function.The workaround I have to use then is checking for and retrieving the custom key/value that the Bitly plugin does produce.
The topic ‘Bitly plugin doesn’t hook into wp_get_shortlink()?’ is closed to new replies.