Reply To: Exclude post categories, Personalize custom post type
sorry, I have not explained well, the second point, I Repeat:
I also tried to customize the Post Types default ‘post’, following this guide: https://codex.buddypress.org/plugindev/post-types-activities/
this is my function:
add_post_type_support( 'post', 'buddypress-activity' );
function customize_page_tracking_args() {
// Check if the Activity component is active before using it.
if ( ! bp_is_active( 'activity' ) ) {
return;
}
bp_activity_set_post_type_tracking_args( 'post', array(
'component_id' => buddypress()->blogs->id,
'action_id' => 'new_blog_post', // or 'new_post'
'bp_activity_admin_filter' => __( 'Published a new post', 'emt-buddypress' ),
'bp_activity_front_filter' => __( 'Posts', 'emt-buddypress' ),
'contexts' => array( 'activity', 'member' ),
'activity_comment' => true,
'bp_activity_new_post' => __( '%1$s shared a new <a href="%2$s">post</a>', 'emt-textbuddypress' ),
'bp_activity_new_post_ms' => __( '%1$s sahred a new <a href="%2$s">post</a>, on the site %3$s', 'emt-textbuddypress' ),
'position' => 100,
) );
}
add_action( 'bp_init', 'customize_page_tracking_args' );
but when I publish a post on activity stream, is not displayed. If I remove the function or use a new custom_post_type, in this function, it works.