How to redirect to my account after logout
If you want redirect to my account after logout you could with this provided code.
Insert this in functions.php in your theme:
if (function_exists('YITH_Vendors')) {
add_action('admin_bar_menu', 'yith_wp_admin_bar_my_account_menu', 10, 1);
function yith_wp_admin_bar_my_account_menu($wp_admin_bar)
{
$vendor = yith_get_vendor('current', 'user');
if ($vendor->is_valid() && $vendor->has_limited_access()) {
$wp_admin_bar->remove_menu('logout');
$wp_admin_bar->add_menu(
array(
'parent' => 'user-actions',
'id' => 'logout',
'title' => __('Log Out'),
'href' => wp_logout_url('my-account'),
)
);
}
}
}