-
-
Save slaFFik/cf2f5335299ccad82188 to your computer and use it in GitHub Desktop.
BuddyPress: Только вы и друзья в ленте активности
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$friends = friends_get_friend_user_ids( bp_loggedin_user_id() ); | |
$friends[] = bp_loggedin_user_id(); | |
$friends_and_me = implode( ',', (array) $friends ); | |
$friends_and_me = '&user_id=' . $friends_and_me; | |
?> | |
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $friends_and_me) ) : ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment