bp_activity_action_personal_feed()

Load a user’s personal activity feed.


Return Return

(bool) False on failure.


Source Source

File: bp-activity/actions/feeds.php

function bp_activity_action_personal_feed() {
	if ( ! bp_is_user_activity() || ! bp_is_current_action( 'feed' ) ) {
		return false;
	}

	$link = trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() );

	// Setup the feed.
	buddypress()->activity->feed = new BP_Activity_Feed( array(
		'id'            => 'personal',

		/* translators: 1: Site Name. 2: User Display Name. */
		'title'         => sprintf( _x( '%1$s | %2$s | Activity', 'Personal activity feed title', 'buddypress' ), bp_get_site_name(), bp_get_displayed_user_fullname() ),
		'link'          => $link,

		/* translators: %s: User Display Name */
		'description'   => sprintf( __( 'Activity feed for %s.', 'buddypress' ), bp_get_displayed_user_fullname() ),
		'activity_args' => 'user_id=' . bp_displayed_user_id()
	) );

	if ( ! buddypress()->activity->feed->enabled ) {
		bp_core_redirect( $link );
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.