Skip to content
Easily share WordPress posts on Mastodon.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Share on Mastodon

Automatically share WordPress posts on Mastodon. You choose which Post Types are shared—though sharing can still be disabled on a per-post basis.

By default, shared statuses look something like:

My Awesome Post Title

Mastodon is smart enough to then try and find things like an Open Graph image and description for that URL. There's no need for a link shortener, either.

Custom Formatting

If you'd rather format toots differently, there's a share_on_mastodon_status filter.

Example: if all posts you share are short, plain-text messages and you want them to appear exactly as written and without a backlink—and essentially create a WordPress front end to Mastodon—then the following couple lines of PHP would handle that.

add_filter( 'share_on_mastodon_status', function( $status, $post ) {
	$status = wp_strip_all_tags( $post->post_content );
	return $status;
}, 10, 2 );


When a Featured Image is set, Share on Mastodon will try to include it. Other media are not supported at the moment.

This behavior can be disabled using the share_on_mastodon_featured_image filter.

// Never upload featured images.
add_filter( 'share_on_mastodon_featured_image', '__return_false' );


Currently, all toots sent via this plugin are public. Unlisted or followers-only toots may become an option later on.


This plugin now uses WordPress' Meta Box API—supported by Gutenberg—to store per-post sharing settings, which makes it 100% compatible with the new block editor.

You can’t perform that action at this time.