Forums
-
- Forum
- Posts
-
- Installation
- 28,529
- Troubleshooting
- 62,964
- Themes
- 10,453
- Plugins
- 15,408
- Requests & Feedback
- 15,048
- Showcase
- 3,252
-
Hmm, I tried below updating the forum id and it didn’t work.
$list = get_users();
if (empty (get_option (‘rew_done2’)) {
foreach ($list as $user) {
$user_id = $user->ID ;
$forum_id = 327 ;
bbp_add_user_forum_subscription( $user_id, $forum_id ) ;
}
update_option (‘rew_done’ , ‘done2’ ) ;
}