The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How use hide show a custom button
✦ Summarize Topic
✦
✦
✦
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...
Feb 25, 2021 10:26 am
(@pyue6299)
Trusted Member
Joined: 6 years ago
I added two custom button at /public_html/wp-content/themes/Divi-child/wpdiscuz/class.WpdiscuzWalker.php Line 630 to 641.
I would like to use WordPress native function to Show / Hide the button depending on the authentication status of my user like this:
<?php if ( is_user_logged_in() ) { ?> <?php } else { ?> <?php } ?>
But I tried different method to input the code into the file, it did not work. The below image is the code, may you provide me some guidance? Thanks
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...
Feb 26, 2021 8:42 am
(@pyue6299)
Trusted Member
Joined: 6 years ago
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8208
Feb 26, 2021 4:58 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...
@pyue6299 ,
We're really sorry, but there is no easy solution we can help you with. You should find some developer to help you with this kind of customizaton.