Reply To: friends_check_friendships not working
add_shortcode('mx-check-if-friends','mx_friends_check_friendship');
function mx_friends_check_friendship( $atts ){
extract(shortcode_atts(array(
'user_id' => '',
'possible_friend_id' => '',
), $atts ) );
return friends_check_friendship( $user_id, $possible_friend_id );
}
OK, I’m not sure if this is exactly correct but it is returning a 1 if friends and a blank if not…basically wrote a shortcode that points to a function that I can provide variables in that in turn then calls the friends_check_friendship function. Anything blatantly wrong with this method?