The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How use hide show a...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

How use hide show a custom button

3 Posts
2 Users
0 Reactions
1,078 Views
Posts: 59
Topic starter
(@pyue6299)
Trusted Member
Joined: 5 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

image
2 Replies
Posts: 59
Topic starter
(@pyue6299)
Trusted Member
Joined: 5 years ago

anyone can help?

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

Illustrious Member
Posts: 8075

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