Notifications
Clear all

[Closed] Show posted topics

2 Posts
2 Users
1 Reactions
657 Views
Posts: 7
Topic starter
(@parsa)
Active Member
Joined: 4 years ago

I have a website that supports WooCommerce customers through tickets
Now I want to answer questions and problems through the forum
I want the topics posted in the forum to be some of them private and some of them public, is this possible?
Only the manager and the person who posted the post can see it
And the administrator can hide or publicize the post whenever he wants

1 Reply
Sofy
Posts: 4802
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

@parsa,

You can use the folloing js code:Β Β 

jQuery(document).ready(function($){
function wpforo_topic_private_checked(){
$("input[id^=wpf_t_private_]").prop('checked', true);
}
wpforo_topic_private_checked();
document.addEventListener('wpforo_topic_portable_form', function(e){
wpforo_topic_private_checked();
});
});

Helpful article: https://www.collectiveray.com/add-javascript-to-wordpress

This makes all topics private by default.Β 

The if moderators want they can make it public.Β