Filter the list of Mastodon instances.
Parameters
- $mastodon_instance_list
array Array of Mastodon instances.
Changelog
- Introduced in Jetpack 11.8
How to use this hook
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;
}
);