Log Out issue in membership website

[ad_1]

Hi.

Can you help me with issue. I have looked in forum and such a question already appeared, but there was not a resolution for me.

When members log out system takes them to wordpress admin log in page. It is not really a solution I was expected. I would like them to be taken to login page or at least to home page. Tried with menus, created custom link, but it doesn’t work. Tried with code snoppet and pasted this code: “add_action(‘wp_logout’,’ps_redirect_after_logout’);
function ps_redirect_after_logout(){
wp_redirect( ‘https://www.apzinatskermenis.com/’ );
exit();
}”

in code snippet, but it shows me an error: “Snippet not activated, the following error was encountered: syntax error, unexpected token ";", expecting ")"

What else I can do to get member log out to login page?

Kind regards,

Laura

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer