-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_rest_inbox_disallowed
github-actions[bot] edited this page Jul 29, 2025
·
2 revisions
ActivityPub inbox disallowed activity.
add_action(
'activitypub_rest_inbox_disallowed',
'my_activitypub_rest_inbox_disallowed_callback',
10,
4
);
function my_activitypub_rest_inbox_disallowed_callback(
array $data,
int $user_id = null,
string $type,
Activitypub\Activity|\WP_Error $activity
) {
// Your code here.
}
-
array
$data
The data array. -
int|null
$user_id
The user ID. -
string
$type
The type of the activity. -
Activitypub\Activity|\WP_Error
$activity
The Activity object.
do_action( 'activitypub_rest_inbox_disallowed', $data, null, $type, $activity )
do_action( 'activitypub_rest_inbox_disallowed', $data, $user->get__id(), $type, $activity )