This topic has 1 reply, 1 voice, and was last updated 9 years by clyn.

  • Author
  • #125766
     clyn
    Participant

    Below 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 );

    ?>

    #125816
     clyn
    Participant
    Not marked as solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?