Skip to content

mastodon_api_account_follow

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

Follow the given account.

Can also be used to update whether to show reblogs or enable notifications.

Auto-generated Example

add_filter(
    'mastodon_api_account_follow',
    function (
        string $user_id,
        WP_REST_Request $request
    ) {
        // Your code here
        return $user_id;
    },
    10,
    2
);

Parameters

  • string $user_id The user ID.
  • WP_REST_Request $request The request object.

Files

apply_filters( 'mastodon_api_account_follow', $user_id, $request )

Hooks

Clone this wiki locally