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
- how do i add logo in my site
- I need to make the title of the page dynamic in my custom plugin
- How to use same username account for multiple users?
- Custom CSS working on home page but not on NEW created PAGE
- Set custom banner image size with wp_customize
- Show total sales for each products on search results page Woocommerce
- I have one page in my WordPress site with a table that needs to be super compact and simple
- Post does not disappear
- Post interior margin in twenty eleven theme
- Redirect all pages to the custom login page except for the registration page
- Problems with WP 6.1.1 and the get_user_meta() function
- How to stop login for SPECIFIC users BEFORE a specified date
- Changes to code not displaying
- Woocommerce send custom email receipt based on product attribute
- User Query Multiple Orderby Clause
- Show last child Child category instead of first child category on page
- How to apply filters if editing specific template
- Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?
- How to search for replacement titles and contents, excluding image URLs
- Some data of one custom user profile is erased when I update another custom user profile
- Change in credit card payment button for woocommerce
- Custom Search on media files PDF images pages posts
- Custom Menu (only showing direct cildren) ACF not showing
- wordpress categories narrow down results
- Is it bad practice to add a filter within a filter in wordpress?
- Local WordPress installation feeding multiple online site sites
- Modifying posts based on category in TwentyTwentyTwo theme
- Permalink Listing WordPress
- Redirection after Category Change for Custom Structure
- How to display product variations on same row
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?
- Why after customizing Home Page, the site is loading six missing blob sources, slowing down all site?
- Multi color post title by using custom javascript inside the gutenberg editor?
- Create a page for each database table entries
- Add custom styles to the Raft theme
- Where did I put this one line of css?
- Custom product sorting archive page
- Add custom information in editor summary
- A Voting system for a pageants
- Add line break for menu items
- How do I know if the custom theme is a child theme or a full-custom theme?
- How can I get the Media Library backend to show larger thumbnails?
- Import bootstrap 5 and bootstrap icons in wp-admin backend
- wp_login_form display no styled form
- I want to force secondary rows using WP_List_Table
- Customise “Add a New Post” page
- Must I rewrite the whole login form or can I jsut do a part
- Hover Hide-Visible Additional CSS not working in WordPress website, but shows properly in Customize window
- Add a custom field for sorting the products in a specific category WOOCOMMERCE – Second try
- Add a custom field for sorting the products in a specific category WOOCOMMERCE
- Advanced Custom Fields in WP_Query: Href Returning Empty
- woocommerce, add free sample button on product page
- RSS Feed Customization
- How to increase page title font size in twenty seventeen wordpress theme for static home page and single column option
- Display Published Posts Count for Time Period
- How to create a second Super Admin or Super User via MySQL DB
- Can’t change WordPress / WooCommerce attribute value order
- How to move custom icons from parent theme to the child theme
- Mobile version displaying all wrong after custom theme rewrites
- Taxonomy question how to add more data
- Different titles on homepage vs single based on category
- Redirections all subcategory to a new page
- next/previous stays within specific taxonomy term when in single post
- Exceute script on publishing or updating a new custom post record
- How to get a custom taxonomy slug in body classes
- How to use standalone Gutenberg (block editor) instance on any my own admin page in WordPress
- WordPress Page Width Issue: Seeking Solutions
- issues having 2 reader accounts. need to log in to two different accounts
- Is it posible to multiple entry value before submit Gravity forms?
- Images in an RSS feed
- WordPress Responsive Custom Control WP Customizer
- How to edit the new user email notification template
- Custom jQuery code in Elementor page is not working on Mac os. On Windows browser work fine
- Encrypt User last name in wordpress for security reasons
- Multiple wp.editor in a custom widget using JQuery
- Unable to edit the 1Homepage
- How to disable the PDF preview in the file block by default
- How do I get the URL section to show use a different domain in the WordPress Admin?
- Custom Logo: why parameters are not working at all?
- Customize style of window alert text
- Block Theme: How to use a different template on front page vs paginated pages?
- Customizing Additional CSS editor