Skip to content

activitypub_pre_get_by_username

github-actions[bot] edited this page Aug 7, 2025 · 11 revisions

Filter the username before we do anything else.

Auto-generated Example

add_filter(
   'activitypub_pre_get_by_username',
    function(
        Activitypub\null $pre,
        string $username
    ) {
        // Your code here.
        return $pre;
    },
    10,
    2
);

Parameters

  • Activitypub\null $pre The pre-existing value.
  • string $username The username.

Files

apply_filters( 'activitypub_pre_get_by_username', null, $username )

← All Hooks

Users

Developers

Clone this wiki locally