AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] Show posted topics

2 Posts
2 Users
1 Reactions
1,180 Views
Posts: 7
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@parsa)
Active Member
Joined: 5 years ago
[#15952]

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: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 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. 


Share: