If you need to show KLEO likes/love only to logged in users you can do that by using this function

COPY CODE

function AllowKleoLikesToLoggedInUsers () {
global $kleo_item_likes;
if(!is_user_logged_in()) {
remove_action('publish_post', array($kleo_item_likes, 'setup_likes'));
remove_action('kleo_post_footer', array($kleo_item_likes, 'show_likes'));
remove_action('kleo_show_love', array($kleo_item_likes, 'show_likes'));
remove_action('wp_ajax_item-likes', array($kleo_item_likes, 'ajax_callback'));
remove_action('wp_ajax_nopriv_item-likes', array($kleo_item_likes, 'ajax_callback'));

}

}
add_action('after_setup_theme', 'AllowKleoLikesToLoggedInUsers', 99);

The function will be added to wp-content/themes/kleo-child/functions.php

Log in with your credentials

Forgot your details?