Skip to content

mastodon_api_mapback_user_id

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

Map back a public id to the previous user id.

Auto-generated Example

add_filter(
    'mastodon_api_mapback_user_id',
    function ( int $user_id ) {
        // Your code here
        return $user_id;
    }
);

Parameters

  • int $user_id The public user ID.

Returns

int The potentially modified user ID.

Files

apply_filters( 'mastodon_api_mapback_user_id', $request->get_param( 'user_id' ) )

Hooks

Clone this wiki locally