butlerblog
9/29/2015 - 5:33 PM

Use the WordPress logout for the WP-Members logout link.

Use the WordPress logout for the WP-Members logout link.

<?php
// add below this line to functions.php

add_filter( 'wpmem_logout_link', 'my_wpmem_logout_link' );
function my_wpmem_logout_link() {
	return wp_logout_url( home_url() );
}