bp_blogs_register_activity_actions()

Register activity actions for the blogs component.

Description

Return

(bool|null) Returns false if activity component is not active.

Source

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

function bp_blogs_register_activity_actions() {
	if ( is_multisite() ) {
		bp_activity_set_action(
			buddypress()->blogs->id,
			'new_blog',
			__( 'New site created', 'buddyboss' ),
			'bp_blogs_format_activity_action_new_blog',
			__( 'New Sites', 'buddyboss' ),
			array( 'activity', 'member' ),
			0
		);
	}

	/**
	 * Fires after the registry of the default blog component activity actions.
	 *
	 * @since BuddyPress 1.1.0
	 */
	do_action( 'bp_blogs_register_activity_actions' );
}

Changelog

Changelog
Version Description
BuddyPress 1.0.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.