Skip to content

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.

Auto-generated Example

/**
 * 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 );

Parameters

  • int $post_id The created post ID.
  • array $activity The activity data.
  • int $user_id The user ID.
  • string $visibility The content visibility.

Files

\do_action( 'activitypub_outbox_created_post', $post->ID, $activity, $user_id, $visibility )

← All Hooks

Users

Developers

Clone this wiki locally