-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_user_can_activitypub
github-actions[bot] edited this page Jul 29, 2025
·
12 revisions
Allow plugins to enable/disable users for ActivityPub.
add_filter(
'activitypub_user_can_activitypub',
'my_activitypub_user_can_activitypub_callback',
10,
2
);
function my_activitypub_user_can_activitypub_callback(
Activitypub\boolean $enabled,
int $user_id
) {
// Your code here.
return $enabled;
}
-
Activitypub\boolean
$enabled
True if the user is enabled, false otherwise. -
int
$user_id
The user ID.
apply_filters( 'activitypub_user_can_activitypub', $enabled, $user_id )
Follow @[email protected] for updates and news.