apply_filters ( 'jetpack_mastodon_instance_list', array $mastodon_instance_list )

Filter the list of Mastodon instances.

Source file:

View in GitHub



(array) Array of Mastodon instances.


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:

	function ( $mastodon_instance_list ) {
		// Add your own instance name here.
		$mastodon_instance_list[] = '';
		return $mastodon_instance_list;

Have a note to contribute?

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

You are commenting using your 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