-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_account_unfollow
Alex Kirk edited this page Feb 8, 2025
·
14 revisions
Unfollow the given account.
add_action(
'mastodon_api_account_unfollow',
function (
string $user_id,
WP_REST_Request $request
) {
// Your code here
},
10,
2
);
-
string
$user_id
The user ID. -
WP_REST_Request
$request
The request object.
do_action( 'mastodon_api_account_unfollow', $user_id, $request )