This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note: This action redirects users who've enabled Clef to getclef.com/logout/ | |
// after performing a manual logout from WordPress. | |
function redirect_to_Clef_logout_upon_wp_logout() { | |
$user = wp_get_current_user(); | |
if (!!get_user_meta($user->ID, "clef_id", true)) { | |
wp_redirect('https://getclef.com/logout/'); | |
exit; | |
} | |
} |