-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_instance_v2
Alex Kirk edited this page Feb 8, 2025
·
15 revisions
Modify the instance data returned for /api/instance
requests.
add_filter( 'mastodon_api_instance_v2', function( $instance_data ) {
return new Entity\Instance();
} );
-
Enable_Mastodon_Apps\null
$instance_data
The instance data.
Enable_Mastodon_Apps\Entity\Instance
The instance object.
apply_filters( 'mastodon_api_instance_v2', null )