Thanks, David.
I’m ok with redirecting users after login, what I’m trying to do is this;
If a user is logged out and goes to the home page url, they see page A.
If a user is logged in and goes to the home page url, they see page B.
I tried using the following code mentioned by someone else in the thread you referenced (found here, with different page id’s) but when activated it changes the static and post pages in DASHBOARD > SETTINGS > READING to the same page. That fouls things up pretty good.
?php
function switch_homepage() {
if ( is_user_logged_in() ) {
$page = 2516; // for logged in users
update_option( 'page_on_front', $page );
update_option( 'show_on_front', 'page' );
} else {
$page = 2; // for logged out users
update_option( 'page_on_front', $page );
update_option( 'show_on_front', 'page' );
}
}
add_action( 'init', 'switch_homepage' );
?>