AI Verified

Name

Cerrar sesion - cliente

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

Blushopi

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

15/01/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Cerrar sesion - cliente

 
                    
1function redireccionar_despues_cierre_sesion($redirect_to, $requested_redirect_to, $user) {
2 if (isset($user->roles) && is_array($user->roles) && in_array('customer', $user->roles)) {
3 $redirect_to = 'https://blushopi.com/login/';
4 }
5 return $redirect_to;
6}
7add_filter('logout_redirect', 'redireccionar_despues_cierre_sesion', 10, 3);

0

Related Snippets

Please see some snippets below related to this snippet..

General

AI Verified

0

Enable Infinite Scrolling in WordPress Media Library

Added: 6 months ago

Last Updated: 6 months ago

Enhance your WordPress Media Library experience by enabling infinite scrolling with this simple code snippet. Add the provided filter to effortlessly load and navigate through your media items without...

General

AI Verified

0

Contact Form 7 Spam Protection

Added: 6 months ago

Last Updated: 6 months ago

Contact Form 7 Spam Protection: Protect your contact forms from spam

General

AI Verified

0

Display and Search Post ID

Added: 7 months ago

Last Updated: 7 months ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

General

AI Verified

0

Convertir imagenes ha formato Webp

Added: 6 months ago

Last Updated: 6 months ago

General

AI Verified

0

Fluen Forms Login

Added: 6 months ago

Last Updated: 6 months ago

General

AI Verified

0

Cerrar sesion - cliente

Added: 6 months ago

Last Updated: 6 months ago