Repository navigation
activitypub_handled_feature_request
github-actions[bot] edited this page Oct 22, 2026
·
6 revisions
Fires after an ActivityPub FeatureRequest activity has been answered.
Not fired when the featured collection cannot be fetched, since the request is dropped unanswered.
/**
* Fires after an ActivityPub FeatureRequest activity has been answered.
*
* Not fired when the featured collection cannot be fetched, since the request is dropped unanswered.
*
* @param array $activity
* @param Activitypub\int[] $user_ids
* @param bool $state
* @param string $policy
*/
function my_activitypub_handled_feature_request_callback( array $activity, Activitypub\int[] $user_ids, bool $state, string $policy ) {
// Your code here.
}
add_action( 'activitypub_handled_feature_request', 'my_activitypub_handled_feature_request_callback', 10, 4 );-
array$activityThe ActivityPub activity data. -
Activitypub\int[]$user_idsThe local user IDs. -
bool$stateTrue on accept, false otherwise. -
string$policyThe active site policy.
\do_action( 'activitypub_handled_feature_request', $activity, (array) $user_ids, $state, $policy )Follow @activitypub.blog@activitypub.blog for updates and news.