bp_nouveau_activity_excerpt_append_text( string $read_more = '' )

Remove brackets around the “Read more” text.


Parameters Parameters

$read_more

(string) (Optional) The read more text.

Default value: ''


Top ↑

Return Return

(string) The read more text without brackets.


Source Source

File: bp-templates/bp-nouveau/includes/activity/functions.php

function bp_nouveau_activity_excerpt_append_text( $read_more = '' ) {
	/**
	 * As this was added during a string freeze period, we
	 * are using the `str_replace()` function.
	 */
	return str_replace( array( '[', ']' ), '', $read_more );
}

Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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