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?
- Looking for a way to align log in form fields with background image and scale responsively
- Why do I get the timeout warning?
- Backup the Database and Restore from the Backup?
- Scaling a WP eCommerce site
- Looking for a lightweight theme using WP3 new tags and features (not 2010) [closed]
- What is the best way to customise admin files so they survive future upgrades?
- Verify nonce in REST API?
- Add custom html to last sub-menu item
- Limit Media Library to Given Folder
- How can I get posts in a subcategory to display on it’s parent categories archive page?
- Creating my own Admin Forms in a WordPress CMS?
- difference between esc_attr(), strip_slashes(), strip_tags()?
- Custom taxonomy: same terms, but for different years
- customize_register with Multiple controls/settings – how to get values?
- Best practices for A/B testing?
- Editing the Number at the end of Page URLs / Editing Page Slugs
- Automatic image renaming based on title
- Manipulating post meta in the customizer
- Rearrange elements outputted by comment_form()
- Integrating the WordPress admin panel with a frontend theme
- generate unique number when registering a user
- Looking to display non-image files in Gallery with logo specific to file type
- simple wp_insert_post example
- Redirect members to custom page upon logging in through WP admin
- Can I use $wpdb for my custom tables in the WordPress database?
- How to get input_attrs in the sanitize function?
- Php custom query function assistance
- Integrating MailChimp newsletters as post
- How can I manage my multiple wordpress websites from main website?
- How to set default values for options page
- Is it ok to not a have child theme and just create a theme from scratch?
- What is WordPress file encoding?
- Change from /wp-admin/ to something else?
- WP_Query with the “offset” argument
- Adding “Interesting Tags” & “Ignored Tags” like StackOverflow.com in a WordPress Blog?
- Auto add taxonomy if post has category
- Add a containing DIV to core Gutenberg blocks
- How do I deque the default stylesheet?
- How to Remove Subscribers from the Post Author Drop Down
- Allow comments without approval for custom content type
- Add ‘Right Now’ widget to custom dashboard
- Are there any security issues with setting the WP_INSTALLING constant to true?
- Naming script handles right way
- Why would switch_to_blog stop working?
- How to add classes in the wp_list_category parent link
- How to edit pages after installing WP
- Exclude custom taxonomy tag from loop
- User Roles Not Sticking
- Login form in popup
- Replace “WordPress” word in title of Dashboard
- $wp_customize->remove_section for customizer setting?
- Multiple WordPress outside wordPress installation?
- How to remove query string from static resource in WordPress?
- WordPress generated links – menus and home_url() – not using https despite settings
- Search a post using the date it was posted
- Dynamic title in WordPress homepage
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- Adding a login form that concatenates three fields into a username
- Moving from development while pulling production database without overwriting, to production
- Ability to only view (not edit) other user’s personal profile information
- Fastest way to get the comment and ping total count for a post
- want to create a subcategory.php to manage subcats
- Updates for a private theme
- Hi, I wanted to make custom search with multiple fields
- Is it possible to add a ribbon in the background of h1 on every page?
- How to add textarea field to taxonomy (tag)?
- Contact From 7 Custom Validation Issues
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- Control Content On Non-Blog Pages
- changing font size and font of a custom message added after comment
- education system [closed]
- Search widget will search everything in the site, how to limit to only search gallery name
- How Can I Move Data From Form 1 To Form 2
- Custom wp-content and upload directory
- custom post type – page template
- How to add custom control to a page?
- Navigation label for page in custom theme
- How to get Related Custom Posts?
- Background image not appearing
- Lost password empty field error redirect to custom login
- Custom comments list, right depth
- Order posts with a custom field but also without
- How to hook up search results page to a back-end page?