-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_instance_rules
Alex Kirk edited this page Feb 8, 2025
·
12 revisions
Modify the instance rules returned for /api/instance/rules
requests.
add_filter( 'mastodon_api_instance_rules', function( $rules ) {
$rules[] = 'https://example.com';
return $rules;
} );
-
array
$rules
The instance rules.
array
The modified instance rules.
apply_filters( 'mastodon_api_instance_rules', array() )