Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // add this code in the functions.php file of your theme
- //if your theme doesn't use bp_head hook, then choose wp_head hook.
- add_action('bp_head', 'egrefin_hide_private_hidden_group_rss_via_custom_css');
- function egrefin_hide_private_hidden_group_rss_via_custom_css() {
- if( bp_is_current_component( 'groups' ) ){
- global $bp;
- if ( isset( $bp->groups->current_group->status ) && 'public' != $bp->groups->current_group->status ) {
- ?>
- <style>
- div#subnav li.feed{
- display:none;
- }
- </style>
- <?php
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement