You can use this on any WordPress page / template.
<?php if ( is_user_logged_in() ) : ?>
//Code for only logged in users
<?php endif; ?>
Checkout the docs for more info: https://developer.wordpress.org/reference/functions/is_user_logged_in/
You can use this on any WordPress page / template.
<?php if ( is_user_logged_in() ) : ?>
//Code for only logged in users
<?php endif; ?>
Checkout the docs for more info: https://developer.wordpress.org/reference/functions/is_user_logged_in/