redirect to homepage after logout

PHOTO EMBED

Thu Jul 22 2021 21:33:06 GMT+0000 (Coordinated Universal Time)

Saved by @Alz #php

// redirect to homepage after logout
add_action('wp_logout',create_function('','wp_redirect(home_url());exit();'));
content_copyCOPY

https://borishoekmeijer.nl/tutorials/wordpress-snippet-collection/