-
Author
-
June 16, 2016 at 18:22 #125766
clyn
ParticipantBelow code working on buddyapp. Its show new custom post type on activity stream and also buddypress filter. But on Kleo, do not show on filter, only activity show new cpt shared. What is the diffence same code is not showing on KLEO buddypress filter side… Thanks.
<?php
function customize_page_tracking_args() {
// Check if the Activity component is active before using it.
if ( ! bp_is_active( ‘activity’ ) ) {
return;
}
add_post_type_support( ‘noid-design’, ‘buddypress-activity’ );
bp_activity_set_post_type_tracking_args( ‘noid-design’, array(
‘component_id’ Â Â Â Â Â Â => ‘activity’,
‘action_id’ Â Â Â Â Â Â Â Â => ‘new_noid-design’,
‘bp_activity_admin_filter’ => __( ‘My Design’, ‘custom-domain’ ),
‘bp_activity_front_filter’ => __( ‘Arch & Design Noid’, ‘custom-domain’ ),
‘contexts’ Â Â Â Â Â Â Â Â => array( ‘activity’, ‘member’ ),
‘bp_activity_new_post’ Â Â => __( ‘%1$s published new noid <a href=”%2$s”><strong>Architecture & Design</strong></a>’, ‘custom-textdomain’ ),
‘bp_activity_new_post_ms’ Â => __( ‘%1$s published new <a href=”%2$s”>Design</a>, on the site %3$s’, ‘custom-textdomain’ ),
‘comment_action_id’ Â Â Â Â Â Â Â Â => ‘new_noid-design_comment’,
‘bp_activity_comments_admin_filter’ => __( ‘Commented Design Noid’, ‘custom-textdomain’ ),
‘bp_activity_comments_front_filter’ => __( ‘Arch & Design Comment’, ‘custom-textdomain’ ),
‘bp_activity_new_comment’ Â Â Â Â Â => __( ‘%1$s commented on the <a href=”%2$s”><strong>Architecture & Design</strong></a>’, ‘custom-textdomain’ ),
‘bp_activity_new_comment_ms’ Â Â Â Â => __( ‘%1$s commented on the <a href=”%2$s”>Design</a>, on the site %3$s’, ‘custom-textdomain’ ),
‘position’ Â Â Â Â Â Â Â Â Â Â Â Â Â => 100,
) );
}
add_action( ‘init’, ‘customize_page_tracking_args’, 1000 );
?>
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.