Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • Rainbow
    Participant

    @adi-admin

    PS: I used this code in conjunction with the buddypress tool (Repair total members count):

    /*
    * Paste in your theme functions.php or in bp-custom.php.
    * Load the site in a browser
    * Remove from your theme functions.php or bp-custom.php.
    */

    function buddypress_add_last_activity() {
    
      $members =  get_users( 'fields=ID' );
      // $members =  get_users( 'fields=ID&role=subscriber' );
      
      foreach ( $members as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
      }
    
    }
    add_action('bp_init', 'buddypress_add_last_activity' );
Viewing 1 replies (of 1 total)
Skip to toolbar