Advertisement
vapvarun

replace bbpress with discussion on activities

Aug 21st, 2020
2,542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. //replace bbpress with discussion on activities
  2. add_action( 'bp_get_activity_css_first_class' , 'update_bbpress_activity_with_discussion', 10 , 2 );
  3. function update_bbpress_activity_with_discussion( $text ) {
  4.     if($text =='bbpress')  {
  5.      $text = 'discussion';
  6.      }
  7.     return $text;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement