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

How use hide show a custom button

3 Posts
2 Users
0 Reactions
868 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: 7 years ago

Illustrious Member
Posts: 7661

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