- Timestamp:
- 12/04/2020 06:13:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php
r12595 r12814 4 4 * 5 5 * @since 3.0.0 6 * @version 5.0.06 * @version 7.0.0 7 7 */ 8 8 … … 539 539 ) ); 540 540 } 541 542 /** 543 * Remove brackets around the "Read more" text. 544 * 545 * @since 7.0.0 546 * 547 * @param string $read_more The read more text. 548 * @return string The read more text without brackets. 549 */ 550 function bp_nouveau_activity_excerpt_append_text( $read_more = '' ) { 551 /** 552 * As this was added during a string freeze period, we 553 * are using the `str_replace()` function. 554 */ 555 return str_replace( array( '[', ']' ), '', $read_more ); 556 } 557 add_filter( 'bp_activity_excerpt_append_text', 'bp_nouveau_activity_excerpt_append_text', 10, 1 );
Note: See TracChangeset
for help on using the changeset viewer.