Feb 18, 2021 7:48 pm
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
Feb 19, 2021 9:06 am
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.Β