Advertisement
ghenzdeveloper

PeepSo after group created

Jan 16th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. add_action('peepso_action_group_create', function (PeepSoGroup $PeepSoGroup) {
  2.     $groupName = $PeepSoGroup->get('name');
  3.     $groupId = $PeepSoGroup->get('id');
  4.     $categories = PeepSoGroupCategoriesGroups::get_categories_for_group($groupId);
  5.     foreach ($categories as $cat) {
  6.         echo $cat->name;
  7.     }
  8. }, 10, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement