Do not show button Logout user?

Solved4.66K viewsThemes
0

Hi,

Do not show button Logout user Anspress. How do when exit user? Pls fix. Thanks

commented

Attachments

logout.png

He he, trả lời xong qua kia mới biết ông cùng hội 🙂

hehe, ông biết icon categories ko? add icon từ awesome í.

Trả lời bên đây rồi nha, tiếng Anh cho nó chuẩn form :):
https://anspress.io/questions/question/how-can-i-add-more-ap-category-icon-icon-for-categories/

1
function my_ap_user_link($links){

if(is_user_logged_in()){
$links['logout'] = array( 'slug' => 'logout', 'title' => __('Logout'), 'link' => wp_logout_url( get_permalink() ), 'order' => 100, 'show_in_menu' => false, 'public' => true, 'class' => 'apicon-lock');
}

return $links;
}
add_filter( 'ap_user_menu', 'my_ap_user_link' );

Paste this code to file functions.php of current theme.

I think this issue is already asked, you should search before ask question.

selected as best answer
You are viewing 1 out of 1 answers, click here to view all answers.