Currently, Pinned activities will display in each and every activity navigation menu of the activity stream.
If somebody wants to hide it from the specific activity navigation Add the below snippet within the functions.php file of your activated theme.
Following are the scopes that can be changed on line number17 under the ‘if’ condition.
- Groups: groups
- My Favorite: favorites
- Mentions: mentions
- My friends: friends
- All Members: all
For Example: If you want to hide the pinned activity from the group navigation use the below code on line number 17.
'groups' === $_REQUEST['scope']