In functions.php add:
<?php
function ps_redirect_after_logout(){
// get the current user's id
$current_user_id = get_current_user_id();
// Get Paul
$paul = get_user_by('login', 'Paul');
$paulsid = $paul->ID;
// check if current user is Paul
if($current_user_id == $paulsid) {
wp_redirect('https://www.example.club/logout-page/');
exit();
}
}
add_action('wp_logout','ps_redirect_after_logout');
I haven’t tested this code, but something like this should be the way to go.
Related Posts:
- WordPress custom login page
- Custom ReCaptcha Login
- How to override wp-login.php
- Custom Login and Registration form in Ajax
- Properly customizing login/register form
- Add Custom API Call to WP-Login.php
- Auto login from custom registration form
- Deep customization of wp-login.php
- Custom Login Process
- A truely custom login page?
- How to create a custom WordPress front page
- Open login logo URL in new tab
- No plugin populate user information in to form
- Custom password set/reset link in same URL format as default does’t work
- Change the default WordPress image on the dashboard login to a custom image [duplicate]
- Use wp_login_form function to login with a custom user table?
- how to manage Session in WordPress using custom login?
- Where are Additional CSS files stored
- What Is The Use Of map_meta_cap Filter?
- Localization: I want the backend: english and frontend in defined language
- Need logged in users returing to site redirected to a separate page
- Widgets vs. Theme Mods
- wordpress custom walker for thumbnails with custom menu
- Adding an email column to a Custom Post Types Admin Screen?
- Allow Users to Set Password During Registration
- Print shortcode in custom action hook not where the shortcode is entered
- simple expandable vertical menu, java script problem
- WordPress 3.1 removing ‘category’ from the slug
- Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?
- Custom search page and search by title, content and tag
- Best way to integrate an existing PHP application into WordPress
- Hide upload image fields for the different media upload popups
- Creating Search Engine Friendly URL’s with Word Press
- Add Div to Comment Form
- Extend Screen Options
- Add more then one site logo – custom-logo theme support
- Send a custom WooCommerce email when custom order change [closed]
- How to get rid of from overbooking car rental website [closed]
- Putting tag outside tag on generated Menu
- Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date
- Custom static page get_header error
- How to encode author ID in the author permalink
- Oxygen builder custom Elements
- Multi Site installation inside a sub domain inside a sub directory
- how do I remove the shipping from woocommerce thankyou page and from the email
- Custom post type adds time/date and author to the post?
- Static admin page for all multisite users
- Using custom image resizing script in a page
- How to use default WP form elements to interact with custom DB table?
- How can I create a permalink with two categories, with the order based on the parent category?
- How do I add a promotional message to my posts?
- Customize option – add two image uploader under same section
- NextGEN Gallery – open all images on page in fancybox [closed]
- How to stop displaying the Id without losing the functionality
- Simplify the admin end
- Creating a shortcode by pulling in a custom field from a plugin
- Divi: how to hide/show specific menu according current page?
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]
- buddypress remove username from autocomplete
- When should I not use WordPress? [closed]
- Hide Customizer’s Widget Choices From The List
- How can i create menu like in the example?
- Custom Post Types database persistance. Why not?
- Can readers download zip files from WordPress sites?
- Customise the Category Widget
- custom user meta query
- Create new network instance, import old single installs AND keep the urls?
- Any Good WordPress Client Like Live Writer To Create Static Pages
- WordPress homepage hangs in IE browsers
- How to setup a membership system in WordPress?
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- Don’t update modify time post on Quick Edit
- Style WooCommerce Product Search Widget
- Product page not found if product data is set Appointment Service
- Avoid showing the same phrase in the loops
- Why does a custom php code inside a custom template not get executed?
- wordpress custom posts page not showing
- Wrap WordPress Login Form in custom Div
- Automatically reject a comment if website field contains anything
- Custom permalink structure for posts in certain categories
- Need help with drop down list on the profile
- Hosing a website within a WordPress directory/folder
- Creating a dynamic URL for an external link inside content
- Child Theme – Changing Header
- Custom Single Template
- how to auto fille conatct form 7 when user is logined
- Creating WordPress staging environment software
- How to add H1 Tag on Homepage?
- Display popular posts by how many hits it got within 30 days of publishing
- How to use hook admin_init for add_action for custom post type column
- User registration add user ID?
- Can’t Auto-Update, but permissions are good?
- WordPress uploads directory. Featured Images storage
- Cannot upload to S3 using CDN Sync Tool
- WooCommerce customise checkout billing form [closed]
- Is there a way to have information on one page automatically feed into another? [closed]
- Upgrade to 3.1.1 Fails
- How can I make a search term redirect to a page
- Post interior margin in twenty eleven theme
- Where did I put this one line of css?