apply_filters ( 'jetpack_mastodon_instance_list', array $mastodon_instance_list )

Filter the list of Mastodon instances.

Source file:

View in GitHub

Parameters

$mastodon_instance_list

(array) Array of Mastodon instances.



Notes

Jetpack’s Social Icons Widget and Jetpack’s Social Menu feature allow you to add a Mastodon icon to your site.

By default, the Mastodon icon will be used if you use some of the most popular Mastodon instances. If you’d like to use a Mastodon icon for your own Mastodon instance, you can add support for your instance thanks to this filter, like so:

add_filter(
	'jetpack_mastodon_instance_list',
	function ( $mastodon_instance_list ) {
		// Add your own instance name here.
		$mastodon_instance_list[] = 'toot.community';
		return $mastodon_instance_list;
	}
);

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s