The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Disable commentfunction for single posts/blogs
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
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
Show original
Translating...
Sep 04, 2020 12:13 pm
(@orakel)
Estimable Member
Joined: 5 years ago
Sometimes you need to diasable the commentfunction on a single post/article because to much harrasement and shitstorm.
I like to know where i can do this and set a message with the reason like:
The comment function in this article is disabled because to much negative posts.
(sorry may english is not the best)
Thanks in advance
Orakel
Support
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
Show original
Translating...
Sep 04, 2020 12:29 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi @orakel ,
Please follow the steps below:
1. Disable the “Allow Comments” option. This option is located under the post/page editor in the edit post admin page. Just edit the post and follow these steps:
> Make sure the “Discussions” admin-box is allowed using “Screen Options” in “Edit Post” admin page:
> Find the “Discussions” admin-box below and uncheck the “Allow Comments” option.
2. Use the wpdiscuz_comment_form_closed hook and display the message you want. The example is provided in this doc. In your case, you'll just deed to change the message in the code: https://wpdiscuz.com/docs/codex/actions/wpdiscuz_comment_form_closed/
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
Show original
Translating...
Sep 04, 2020 12:30 pm
(@orakel)
Estimable Member
Joined: 5 years ago
The support here is wonderfull, thank you very much! I like to make a donation.
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
Show original
Translating...
Sep 04, 2020 12:34 pm
(@orakel)
Estimable Member
Joined: 5 years ago
My english is too bad, can you explain me, step by step where i have to put in this code?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8207
Sep 04, 2020 12:39 pm
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
Show original
Translating...
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
Show original
Translating...
Sep 04, 2020 12:43 pm
(@orakel)
Estimable Member
Joined: 5 years ago
You are so nice...thank you very much for all the help =)
Orakel
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
Show original
Translating...
Sep 04, 2020 2:06 pm
(@orakel)
Estimable Member
Joined: 5 years ago
add_action("wpdiscuz_comment_form_closed", function ($post, $currentUser, $commentsCount) { echo "Custom Message"; }, 10, 3);
Is this code also for the functions.php?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8207
Sep 04, 2020 2:07 pm
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
Show original
Translating...
Is this code also for the functions.php?
yes, @orakel , it is.
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
Show original
Translating...
Sep 04, 2020 2:41 pm
(@orakel)
Estimable Member
Joined: 5 years ago
There is no way to diasable the discussion for me.
Can you help me out there?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8207
Sep 04, 2020 2:48 pm
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
Show original
Translating...
@orakel ,
Please see the screenshot below