-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_outbox_created_post
github-actions[bot] edited this page Mar 12, 2026
·
1 revision
Fires after a post has been created from an outgoing Create activity.
/**
* Fires after a post has been created from an outgoing Create activity.
*
* @param int $post_id
* @param array $activity
* @param int $user_id
* @param string $visibility
*/
function my_activitypub_outbox_created_post_callback( int $post_id, array $activity, int $user_id, string $visibility ) {
// Your code here.
}
add_action( 'activitypub_outbox_created_post', 'my_activitypub_outbox_created_post_callback', 10, 4 );-
int$post_idThe created post ID. -
array$activityThe activity data. -
int$user_idThe user ID. -
string$visibilityThe content visibility.
\do_action( 'activitypub_outbox_created_post', $post->ID, $activity, $user_id, $visibility )Follow @activitypub.blog@activitypub.blog for updates and news.