I
I
Ivan Vasilyevich2016-08-31 01:01:11
PHP
Ivan Vasilyevich, 2016-08-31 01:01:11

How to separate index.php content for registered users and guests in WordPress?

Actually, there is a WordPress site and a rewritten authorization form, which is called through <?php wp_login_form( $args ); ?>
Next, after authorization on the site, the form remains active and does not disappear (you can log in again), you need to somehow force the content on the site to change, for example, change links in navigation, such as adding an exit button, personal account or viewing messages. And of course, remove the re-authorization
So, how to distinguish the content of registered users and guests in index.php?
What functions or scripts do all this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2016-08-31
@MrNutsOne

https://developer.wordpress.org/reference/function...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question