Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to rename activity filters


  • Michael
    Participant

    @michael8888

    How can I rename the activity filters? For instance, I want to rename “posts” to “blog posts” and “topics” to “forum topics.”

Viewing 1 replies (of 1 total)

  • Michael
    Participant

    @michael8888

    It works like this:

    add_filter('bp_get_activity_show_filters_options', 'my_buddypress_filter',10,2);
    function mp_buddypress_filter($filters, $context) {
      $filters['new_blog_post'] = 'Blog Posts';
      $filters['new_blog_comment'] = 'Blog Comments';
      $filters['bbp_topic_create'] = 'Forum Topics';
      $filters['bbp_reply_create'] = 'Forum Replies';
      return $filters;
    }
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar