Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Adding custom posts to activity- and changing the name of the activity action

@milenushka

Participant

Hi @shanebp,

Thank you for your help. I found this article by @boonebgorges about adding the comments to custom posts to the activity feed. I actually have that working already, but the text is generic- “user commented on a post”. Is there a way to add a specific slug here too?

  function bbg_record_my_custom_post_type_comments( $post_types ) {
      $post_types[] = 'dolphin'; // Add your custom post type name to the array. If you have a post type called 'dolphin' then you have a weird plugin
      return $post_types;
  }
  add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );

With kind regards,

M

Skip to toolbar