-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_favourites_args
github-actions[bot] edited this page Apr 14, 2026
·
13 revisions
Modify the arguments for the favourites API request.
add_filter(
'mastodon_api_favourites_args',
function (
array $args,
int $user_id,
int $limit
) {
// Your code here
return $args;
},
10,
3
);-
array$argsThe arguments. -
int$user_idThe user ID. -
int$limitThe number of statuses to return.
array The modified arguments.
apply_filters( 'mastodon_api_favourites_args', array(), get_current_user_id(), $request->get_param( 'limit' ) )