-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_authorize_capability
github-actions[bot] edited this page Jul 13, 2026
·
1 revision
Filter the WordPress capability required to authorize Mastodon apps.
Defaults to read so lower-privileged logged-in users can authorize apps
for read and interaction endpoints. Posting is still guarded separately
by the status creation endpoint.
add_filter(
'mastodon_api_authorize_capability',
function ( string $capability ) {
// Your code here
return $capability;
}
);-
string$capabilityThe required WordPress capability.
apply_filters( 'mastodon_api_authorize_capability', 'read' )