How to override groups_create_group
-
I want to set the group ID to “group name slug” by default.
Is there a good way to override the function “groups_create_group()” in “bp-groups/bp-groups-functions.php”?
I would like to specify an id for the slug as shown below, but do not want to modify the core file. It would be helpful if I could override it in “bp-custom.php”.
$args = bp_parse_args( $args, array( 'group_id' => 0, 'creator_id' => 0, 'name' => '', 'description' => '', 'slug' => bp_get_current_group_id(), 'status' => null, 'parent_id' => null, 'enable_forum' => null, 'date_created' => null, ), 'groups_create_group' );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.