-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_handled_create
github-actions[bot] edited this page Aug 1, 2025
·
13 revisions
Fires after a Create activity has been handled.
/**
* Fires after a Create activity has been handled.
*
* @param array $activity
* @param int $user_id
* @param WP_Comment|\WP_Error $state
* @param WP_Comment|\WP_Error $reaction
* @return array The filtered value.
*/
function my_activitypub_handled_create_callback( array $activity, int $user_id, WP_Comment|\WP_Error $state, WP_Comment|\WP_Error $reaction = null ) {
// Your code here.
return $activity;
}
add_filter( 'activitypub_handled_create', 'my_activitypub_handled_create_callback', 10, 4 );-
array$activityThe activity-object. -
int$user_idThe id of the local blog-user. -
WP_Comment|\WP_Error$stateThe comment object or WP_Error. -
WP_Comment|\WP_Error|null$reactionThe reaction object or WP_Error.
\do_action( 'activitypub_handled_create', $activity, $user_id, $state, $reaction )Follow @[email protected] for updates and news.