Do you require that this user go to that specific page first upon logging in? Or can they go to the regular page after login and then just make them the only user allowed to view the specific page in question?
If the latter, try using the following:
wp_get_current_user();
http://codex.wordpress.org/Function_Reference/wp_get_current_user
Then test to see if it is the user you want. Make a custom page for the page you want (if you haven’t done so already) and add this test at the top of the page. If any other user is logged in (or none at all) then display nothing or use:
wp_redirect( $location, $status );
exit;
http://codex.wordpress.org/Function_Reference/wp_redirect
to redirect all other users to the main page or some other page.
This approach seems (to me) a lot simpler than potentially breaking the normal login functionality.
Related Posts:
- Redirect after User Activation [closed]
- Redirecting user after updating profile?
- Redirect User to Homepage if no other redirect is specified
- Redirect after users complete profile form
- Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file
- Redirect user to login before viewing custom post
- Redirect subscribers to last viewed page after log-in
- Redirect user after successful email change
- WP_User_List -> How to open a new edit-page in WordPress admin backend!
- How to stop redirect if user is already on correct page (Using Case Switch)
- WP not logging in at first time
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- How can I do a url redirect to include a wordpress username?
- Redirect logged on user to a specific page based on wp user role, page id
- Redirect users after login
- Redirect user to login if not logged in, on specific pages
- redirect user to their profile after log in
- Redirect current user to their most recent custom post
- how redirect users to custom login page when “login to reply” is clicked? [duplicate]
- How to remember which page the user was on before logout?
- Redirect /member/ to /member/user
- Specific Content on pages based on user
- Redirect current user
- Redirect based on log-in status per JavaScript
- Redirect user based on role when they try access a particular page
- How to get userid at wp_logout action hook?
- What’s the difference between the capability remove_users and delete_users?
- How to let contributors to create a new revision(draft) editing their published posts
- How to hide media uploads by other users in the Media menu?
- Is there a way to set a user profile to Draft?
- Get users with atleast one post
- edit profile validation refreshes all field if missing wordpress
- Wp_User_Query not sorting by meta key
- Any reason to be concerned by a wave of “zombie” blog signups?
- Migrating users from .com to .org?
- Get total number of authors on the site
- How to migrate wordpress users from one blog to another
- Find out when a user was created and display varied content depending on time since creation
- Creating a Front-end based User Search
- How can I link users across multiple subdomains?
- Create user with author role but no login information
- Importing Existing Users with Passwords
- Create not-activated user in code, wordpress
- Is there any function available to echo current user’s profile url?
- Add user data to table when user is created?
- Why wordpress showe “admin is editing…” whoever edits?
- Restricted registrations or removing the ability to edit your password/email
- Limit amout of sessions on user-by-user basis?
- Remove admin menu links for multiple users by email
- Use wp_update_user to update custom column in wp_users table
- Create a front user register/login/profile & logout without interfering with wp-login.php?
- How to export bbPress (forums, topics, replies) and all users?
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- Translate emails into the language of the user
- How to filter users by last_name?
- Can I check which users ran which updates?
- Extend backend User search to custom user meta
- Bulk lock users without email address?
- How to implement friend system for WordPress?
- Custom Query for count_user_posts function
- Delete user after Contact Form 7 submission [closed]
- Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)
- How to pull all the contributer users records and order by Designation (which is users meta data)?
- cannot get user_registered date from get_user_meta
- Delete Users without a First and Last Name
- Display video on homepage for users who have not logged in
- Best way to get user id for get_users function?
- Customising “user ids” and add to ‘user’ panel in the admin area
- Add a sub menu page to the Users menu
- Get usermeta info from sql query
- Confirm Deletion not found
- Can I edit the database to change a login?
- User Meta stuff
- User can’t search himself on rest api
- How do I update user email from frontend input field?
- How to allow access based on the user meta flag
- Authentication between two different sites using the WordPress login cookie
- Cannot update newly added User field using wp_update_user
- How can I display Only the first Array/Object?
- How can i add user display name drop down menu in frontend?
- How to create page for user?
- How to prevent multiple user accounts with the same meta field?
- How do I set a maximum upload size for a specific user role (Editor)
- Return all users that have one or more published blog posts
- members only products
- Modify the user data stdObject and add extra items to it?
- Create relationships between users or user roles
- wp_update_user() returning http 500 internal server error
- User Permissions on custom post type
- update custom field user profile from front end form
- Change “logged in as a ” link in comments form
- I try to add informations to User profile
- force registered user as seller
- Manage user profiles with WordPress
- Not able to call value in the core files
- Fetching posts that match a User Profile setting
- Privacy in WordPress
- how can i inform other users about new user registration? [closed]
- How to display Most Recently Read 10 Posts by a logged in user in wordpress
- Set a minimal number for next user_id