Tag Info

New answers tagged

0

WordPress provides the is_user_logged_in() function for this. Documentation: https://codex.wordpress.org/Function_Reference/is_user_logged_in You could do something like: <?php if ( is_user_logged_in() ) { // show button to Test_Page } else { // show button to registration page } ?>



Top 50 recent answers are included