admin管理员组文章数量:1289525
I am setting up a big blog for a client and we're looking to replace the wp.me shortlinks in the header and in everything with our custom domain on bit.ly.
I have working code to build the Shortlinks, im just wondering if there is any way to replace the functions so pressing "Get Shortlink" and tweeting links, would use our bit.ly
Is there a way to add action and replace the existing wp_get_shortlink and a like? To be clear, i want all the same functionality, just with a different short link.
I am setting up a big blog for a client and we're looking to replace the wp.me shortlinks in the header and in everything with our custom domain on bit.ly.
I have working code to build the Shortlinks, im just wondering if there is any way to replace the functions so pressing "Get Shortlink" and tweeting links, would use our bit.ly
Is there a way to add action and replace the existing wp_get_shortlink and a like? To be clear, i want all the same functionality, just with a different short link.
Share Improve this question asked Nov 9, 2012 at 17:28 alpha1alpha1 2452 silver badges10 bronze badges1 Answer
Reset to default 2Totally possible, here is a great walkthough: http://bavotasan/2010/create-bit-ly-short-urls-for-your-posts-in-wordpress/
Bullet points:
-Write a function that gets the bitly link upon publish
-Remove the default action and add your own
-Call wp_get_shortlink() like normal and bitly will be used
本文标签: shortlinkReplacing the WPme URL shortener with Bitly
版权声明:本文标题:shortlink - Replacing the WP.me URL shortener with Bit.ly 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741452726a2379580.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论