Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add tab for Images Post in activity


  • aman0907
    Participant

    @aman0907

    I want to show only images post when user click on ‘Chart’ Tab at Activity page.
    I add some code but it not working through ajax, it showing when page reload.

    function my_theme_add_activity_tab() {
    if ( !is_user_logged_in() )
    return false;
    ?>
    
    <li id="activity-myclass">
    
    <a>" title="<?php _e( 'Activity for my Class Year.', 'buddypress' ) ?>">
    
    <?php printf( __( 'Chart', 'buddypress' ) ) ?>
    
    </a>
    
    </li>
    
    <?php
    
    }
    
    add_action( 'bp_activity_type_tabs', 'my_theme_add_activity_tab' ); 

    Please help me.

  • You must be logged in to reply to this topic.
Skip to toolbar