Replacing the WP.me URL shortener with Bit.ly

Totally possible, here is a great walkthough: http://bavotasan.com/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

How to remove ?p= from wordpress short links

I am not sure how you removed ?p= from the link but you can use get_shortlink filter to override the shortlink. You can refer following article for more details. http://www.wpbeginner.com/wp-themes/how-to-display-wordpress-shortlinks-in-your-theme/ Reference to get_shortlink filter: https://developer.wordpress.org/reference/hooks/get_shortlink/ Can you share some more details on how you removed the ?p= from the link?

How do I do a redirect to WordPress permalink with post id via htaccess?

So I’m not sure why that RewriteRule returned a 404 error for you, because I’ve tested it and it did work as expected — if permalinks are actually enabled, you would be redirected to the actual post permalink. And here’s the content of my .htaccess file: RewriteEngine On RewriteRule ^go/(\d+)$ /?p=$1 [R=302,L] # BEGIN WordPress … Read more

How get a value from a plugin into another plugin through action/filter

when the shortlink is created, an action is trown with this line : do_action(‘fts_use_shortlink’, $post_id, $shortlink); then you can hook your code on the action with this code e.g. in the 2nd plugin : add_action(“fts_use_shortlink”, function ($post_id, $shortlink) { // here you can use $shortlink }, 10, 2); // 10 is the priority when there … Read more