when create group slug, add action is better?
-
version 2.7.2
In file bp-groups-actions.php line 184, param slub in the function groups_create_group ,if ( !$bp->groups->new_group_id = groups_create_group( array( 'group_id' => $new_group_id, 'name' => $_POST['group-name'], 'description' => $_POST['group-desc'], 'slug' => groups_check_slug( sanitize_title( esc_attr( $_POST['group-name'] ) ) ), 'date_created' => bp_core_current_time(), 'status' => 'public' ) ) ) {
if slug is created in function groups_create_group is more better, and add one action ,then user can change it , for example ,
custom field, md5($_POST['group-name'])
.
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.