How to change the ClassName output to “activity”
-
I was able to output the post of the custom post type “dolphin” to the activity by the following code.
function bbg_record_my_custom_post_type_comments( $post_types ) { $post_types[] = 'dolphin'; return $post_types; } add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );
This makes HTML look like:
<li class="activity new_blog_post activity-item" id="activity-777"> <!-- [...] --> </li>
So, I want to change ClassName
new_blog_post
tonew_dolphin_post
.It would be greatly appreciated if you could explain the details.
Thanks.
- You must be logged in to reply to this topic.