-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_pre_get_by_username
github-actions[bot] edited this page Aug 26, 2025
·
10 revisions
Filter the username before we do anything else.
/**
* Filter the username before we do anything else.
*
* @param Activitypub\null $pre
* @param string $username
* @return Activitypub\null The filtered value.
*/
function my_activitypub_pre_get_by_username_callback( Activitypub\null $pre, string $username ) {
// Your code here.
return $pre;
}
add_filter( 'activitypub_pre_get_by_username', 'my_activitypub_pre_get_by_username_callback', 10, 2 );
-
Activitypub\null
$pre
The pre-existing value. -
string
$username
The username.
apply_filters( 'activitypub_pre_get_by_username', null, $username )
Follow @[email protected] for updates and news.