-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_user_can_activitypub
github-actions[bot] edited this page Jul 29, 2025
·
16 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$enabledTrue if the user is enabled, false otherwise. -
int$user_idThe user ID.
apply_filters( 'activitypub_user_can_activitypub', $enabled, $user_id )Follow @[email protected] for updates and news.