Skip to content

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.

Auto-generated Example

add_filter(
    'mastodon_api_authorize_capability',
    function ( string $capability ) {
        // Your code here
        return $capability;
    }
);

Parameters

  • string $capability The required WordPress capability.

Files

apply_filters( 'mastodon_api_authorize_capability', 'read' )

Hooks

Clone this wiki locally