• Hi Andrea

    Is there any chance you can consider to make BP Profile Search compatible with BuddyPress Member Types Pro ?

    In BuddyPress Member Types Pro I can choose member type to be displayed in directory
    Member type that I choosed not to display, still display in select box in search form.

    I use following code in bp-custom.php file to include member type in select box of search form

    
    add_filter( 'bpmtp_profile_search_form_allowed_member_types', function ( $member_types ) {
        return array(
    		'xx',
    		'yy',
    	);
    	// add more to the above list.
    } );
    

    It works but is is not flexible, it cannot be managed from settings

    Or instead of being compatible with BuddyPress Member Types Pro to have option to choose value to be included in settings of BP Search Form

    Or both ……

    Thanks

    Regards

    Johan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Johan,

    I suggest that, instead of returning a fixed array, your code could retrieve the existing BuddyPress Member Types Pro settings and return the correct member types.

    In my opinion, that code would be better placed in BuddyPress Member Types Pro than in BP Profile Search, but of course it will also work in bp-custom.php.

    Please let me know if you find a working solution!

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi Andrea

    Concerning placing the code in BuddyPress Member Types Pro it should be discussed with @sbrajesh

    Thanks for your answer

    Regards

    Johan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BuddyPress Member Types Pro compatibility’ is closed to new replies.