do_action( 'bp_activity_post_type_published', int $activity_id, WP_Post $post, array $activity_args )

Fires after the publishing of an activity item for a newly published post type post.

Description

Parameters

$activity_id

(int) ID of the newly published activity item.

$post

(WP_Post) Post object.

$activity_args

(array) Array of activity arguments.

Source

File: bp-activity/bp-activity-functions.php

Changelog

Changelog
Version Description
BuddyPress 2.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.