PHP code example of hypejunction / group_suggestions

1. Go to this page and download the library: Download hypejunction/group_suggestions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hypejunction / group_suggestions example snippets


// Total count of shared members and tags
$group->getVolatileData('select:score');

// Concatenated string of members in user's groups who have joined this suggested group
$group->getVolatileData('select:shared_members');

// Concated string of tag metadata value ids shared between the user and this suggested group
$group->getVolatileData('select:shared_tags');

$options = group_suggestions_add_match_queries($options);
echo elgg_list_entities($options);