Skip to content

mastodon_api_account_visibility

Alex Kirk edited this page Feb 8, 2025 · 13 revisions

Auto-generated Example

add_filter(
    'mastodon_api_account_visibility',
    function (
        string $public,
        $wp_get_current_user
    ) {
        // Your code here
        return $public;
    },
    10,
    2
);

Parameters

  • string $public
  • $wp_get_current_user

Files

apply_filters( 'mastodon_api_account_visibility', 'public', wp_get_current_user() )

Hooks

Clone this wiki locally