-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_handled_create
github-actions[bot] edited this page Oct 21, 2025
·
12 revisions
Fires after an ActivityPub Create activity has been handled.
/**
* Fires after an ActivityPub Create activity has been handled.
*
* @param array $activity
* @param int $user_id
* @param bool $success
* @param WP_Comment|\WP_Post|\WP_Error $result
* @return array The filtered value.
*/
function my_activitypub_handled_create_callback( array $activity, int $user_id, bool $success, WP_Comment|\WP_Post|\WP_Error $result ) {
// Your code here.
return $activity;
}
add_filter( 'activitypub_handled_create', 'my_activitypub_handled_create_callback', 10, 4 );-
array$activityThe ActivityPub activity data. -
int$user_idThe local user ID. -
bool$successTrue on success, false otherwise. -
WP_Comment|\WP_Post|\WP_Error$resultThe WP_Comment object of the created comment, or null if creation failed.
\do_action( 'activitypub_handled_create', $activity, $user_id, $success, $result )Follow @[email protected] for updates and news.