Changing login url
I think the article’s logout hook is wrong on two or three counts: it needs ?action=logout, similar to the lost password link it needs a generated nonce too it doesn’t respect the $redirect argument. Here’s a new version based on the current wp_logout_url() code: add_filter( ‘logout_url’, ‘my_logout_page’, 10, 2 ); function my_logout_page( $logout_url, $redirect ) …