The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
How use hide show a...
 
Share:
Notifications
Clear all

How use hide show a custom button

3 Posts
2 Users
0 Reactions
1,364 Views
Posts: 59
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
(@pyue6299)
Trusted Member
Joined: 6 years ago
[#1726]

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

image

2 Replies
Posts: 59
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
(@pyue6299)
Trusted Member
Joined: 6 years ago

anyone can help?


Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8208
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

@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. 


Reply
Share: