Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: Checkout Woocommerce JSON trouble #178011
     FD
    Participant
    This reply has been set as private.
    in reply to: Do not show front page after log in #107290
     FD
    Participant

    Hi @localpathfinders

    We are using this function to redirect the users away from the front page after login.
    This function also “hides” the front page while the user is logged in.

    COPY CODE
    
    add_action('wp', 'check_redirect_page');
    
    function check_redirect_page() {
        if (is_user_logged_in() && is_page( REPLACE_WITH_FRONTPAGE_PAGE_ID )) {
        wp_redirect( get_permalink( REPLACE_WITH_PAGE_ID_OF_THE_PAGE_YOU_WANT_TO_BE_REDIRECTED_TO ));
        exit;
        }
    }
    
    in reply to: Private Message Restrictions Broken #12525
     FD
    Participant
    This reply has been set as private.
Viewing 3 posts - 1 through 3 (of 3 total)

Log in with your credentials

Forgot your details?