Notifications
Clear all

Show posted topics

2 Posts
2 Users
1 Likes
372 Views
parsa
Posts: 5
Topic starter
(@parsa)
Active Member
Joined: 2 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: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 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. 

Reply