-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_account_following
github-actions[bot] edited this page Apr 14, 2026
·
12 revisions
Modify the account following.
add_filter( 'mastodon_api_account_following', function ( $following, $user_id, $request ) {
$account = new Entity\Account();
$account->id = $user_id;
$following[] = $account;
return $following;
}, 10, 3 );-
Enable_Mastodon_Apps\Entity\Account[]$followingThe account following. -
string$user_idThe user ID. -
WP_REST_Request$requestThe request object.
Enable_Mastodon_Apps\Entity\Account[] The modified account following.
\apply_filters( 'mastodon_api_account_following', array(), $user_id, $request )