-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_user_can_activitypub
github-actions[bot] edited this page Jul 23, 2025
·
12 revisions
Allow plugins to enable/disable users for ActivityPub.
add_filter(
'activitypub_user_can_activitypub',
function (
Activitypub\boolean $enabled,
int $user_id
) {
// Your code here
return $enabled;
},
10,
2
);
-
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.