bp_get_activity_content_body()

Return the activity content body.


Description Description


Return Return

(string) The activity content body.


Top ↑

Source Source

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

	function bp_get_activity_content_body() {
		global $activities_template;

		// Backwards compatibility if action is not being used.
		if ( empty( $activities_template->activity->action ) && ! empty( $activities_template->activity->content ) ) {
			$activities_template->activity->content = bp_insert_activity_meta( $activities_template->activity->content );
		}

		/**
		 * Filters the activity content body.
		 *
		 * @since 1.2.0
		 *
		 * @param string $content  Content body.
		 * @param object $activity Activity object. Passed by reference.
		 */
		return apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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