Skip to content

mastodon_api_account_unfollow

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

Unfollow the given account.

Auto-generated Example

add_action(
    'mastodon_api_account_unfollow',
    function (
        string $user_id,
        WP_REST_Request $request
    ) {
        // Your code here
    },
    10,
    2
);

Parameters

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

Files

do_action( 'mastodon_api_account_unfollow', $user_id, $request )

Hooks

Clone this wiki locally