BuddyDev

Search

Groups Tab Pro conflict when restricting pages

  • Participant
    Level: Enlightened
    Posts: 42
    r08 on #37212

    I am using the Groups Tab Pro plugin and it’s working great. I’m hoping to restrict access to pages using a plugin called Groups (By itthinx). As soon as I installed the Groups plugin to restrict access to pages it also hides the content of all added tabs.

    I’m still troubleshooting but think there might be a conflict between these two plugins. I was hoping to really use Groups since it’s lightweight and seems like a very stable plugin. Do you know what the problem is? If this can’t be resolved can you recommend a page restriction plugin like Groups that is compatible?

    These are my active plugins:
    https://monosnap.com/file/jUVWawTgSQG6HOZj4SU249FkmnumUa

    I’m able to add a new tab:
    https://monosnap.com/file/o97z1vR7t1dld6Cbk6y3V2bpvUqBR1

    As soon as I install and activate Groups:
    https://wordpress.org/plugins/groups/

    Any custom tab content disappears:
    https://monosnap.com/file/Sm9VX9tMpDw9RO7nfbeuumyzayk1zE

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #37316

    Hi,
    Thank you for reporting the issue.

    Please allow us to test and get back to you on Monday.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 42
    r08 on #37447

    Were you able to install and test these two plugins together? You should receive the same problem, please let me know how it goes.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #37467

    Hi,
    Thank you for the patience.

    The “Groups” plugin enables content filtering On by default and hide contents for the post unless excluded(I am guessing the exclusion part).

    Here is the code that you can put in bp-custom.php to disable this on the BuddyPress single group page

    
    
    /**
     * Disable groups plugin content filtering.
     */
    add_filter( 'groups_post_access_the_content_apply', function ( $apply ) {
    	if ( function_exists( 'bp_is_group' ) && bp_is_group() ) {
    		$apply = false;
    	}
    	return $apply;
    } );
    

    That will make it work.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 42
    r08 on #37574

    I will test this code this week and let you know how it went.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #37621

    Thank you. I look forward to your feedback.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved