Feb 25, 2021 6:26 am
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
2 Replies
Feb 26, 2021 4:42 am
anyone can help?