Oct 24, 2023 9:29 pm
Hi there!
How do I get a list of members subscribed to current forum, to use on my template override? Sort of like "php wpforo_viewing( $forum )" but for subscribers.
Is there an easy way?
1 Reply
Oct 27, 2023 7:31 am
Hi @prokops_dk,
You can use this function to get subscriber ids of current forum:
WPF()->sbscrb->get_subscribes( [ 'itemid' => 111, 'type' => [ 'forum' , 'forum-topic' ] ] );
Where the 111 is your sub-forum id.
In the database, all subscriptions are stored in wp_wpforo_subscribes table.