bp_get_activity_comment_content()

Return the content of the activity comment currently being displayed.


Description Description

The content is run through two filters. ‘bp_get_activity_content’ will apply all filters applied to activity items in general. Use ‘bp_activity_comment_content’ to modify the content of activity comments only.


Return Return

(string) $content The content of the current activity comment.


Top ↑

Source Source

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

	function bp_get_activity_comment_content() {
		global $activities_template;

		/** This filter is documented in bp-activity/bp-activity-template.php */
		$content = apply_filters( 'bp_get_activity_content', $activities_template->activity->current_comment->content );

		/**
		 * Filters the content of the current activity comment.
		 *
		 * @since 1.2.0
		 * @since 3.0.0 Added $context parameter to disambiguate from bp_get_activity_comment_content().
		 *
		 * @param string $content The content of the current activity comment.
		 * @param string $context This filter's context ("get").
		 */
		return apply_filters( 'bp_activity_comment_content', $content, 'get' );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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