nielslange
3/31/2018 - 5:41 PM

peepso → peepso_action_like_add (part II)

peepso → peepso_action_like_add (part II)

<?php
add_action('peepso_action_like_add', 'hook', 10, 1);
 
function hook($like) {
    $msg = 'User ' . get_current_user_id() . ' liked an activity {$like->like_external_id}';
    error_log($msg);
}