I have no clue about coding, which will become obvious in a second. I found this code here, which works fine:

    function add_login_check()
    if ( is_user_logged_in() && is_page(6005) ) {

    add_action('wp', 'add_login_check');

I just wonder, how i can make this apply to several pages (IDs), e. g. 6005 and 6003 and 6013 etc. How would I properly “write” that?

Any hint would be appreciated!

Read more here: WordPress redirect logged in users from various pages


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: