Skip to content

mastodon_api_account_followers

github-actions[bot] edited this page Jul 24, 2026 · 33 revisions

Modify the account followers.

Example

add_filter( 'mastodon_api_account_followers', function ( $followers, $user_id, $request ) {
   $account     = new Entity\Account();
   $account->id = $user_id;

   $followers[] = $account;

   return $followers;
}, 10, 3 );

Parameters

  • Enable_Mastodon_Apps\Entity\Account[] $followers The account followers.
  • string $user_id The user ID.
  • WP_REST_Request $request The request object.

Returns

Enable_Mastodon_Apps\Entity\Account[] The modified account followers.

Files

\apply_filters( 'mastodon_api_account_followers', array(), $user_id, $request )

Hooks

Clone this wiki locally