Support » Plugin: User Submitted Posts » Refresh page

  • Resolved rentijer

    (@rentijer)



    Why the plugin does not see logged in user until they refresh web page?
    web site
    Users cannot go to the post editor, they must first to refresh the page.

    I have also this code for redirection users in my function page.

    add_filter( 'bp_login_redirect', 'bpdev_redirect_to_profile', 11, 3 );
     
    function bpdev_redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ){
     
        if( empty( $redirect_to_calculated ) )
            $redirect_to_calculated = admin_url();
     
        //if the user is not site admin,redirect to his/her profile
     
        if( isset( $user->ID) && ! is_super_admin( $user->ID ) )
            return bp_core_get_user_domain( $user->ID );
        else
            return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/
     
    }
    • This topic was modified 1 year, 11 months ago by  rentijer.
Viewing 15 replies - 1 through 15 (of 19 total)
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Refresh page’ is closed to new replies.