diff --git src/bp-groups/classes/class-bp-groups-component.php src/bp-groups/classes/class-bp-groups-component.php
index 1e375f825..2eb295658 100644
|
|
|
class BP_Groups_Component extends BP_Component {
|
| 364 | 364 | return; |
| 365 | 365 | } |
| 366 | 366 | |
| 367 | | /** |
| 368 | | * Filters the preconfigured groups creation steps. |
| 369 | | * |
| 370 | | * @since 1.1.0 |
| 371 | | * |
| 372 | | * @param array $value Array of preconfigured group creation steps. |
| 373 | | */ |
| 374 | | $this->group_creation_steps = apply_filters( 'groups_create_group_steps', array( |
| | 367 | // Set default creation steps. |
| | 368 | $group_creation_steps = array( |
| 375 | 369 | 'group-details' => array( |
| 376 | 370 | 'name' => _x( 'Details', 'Group screen nav', 'buddypress' ), |
| 377 | 371 | 'position' => 0 |
| … |
… |
class BP_Groups_Component extends BP_Component {
|
| 380 | 374 | 'name' => _x( 'Settings', 'Group screen nav', 'buddypress' ), |
| 381 | 375 | 'position' => 10 |
| 382 | 376 | ) |
| 383 | | ) ); |
| | 377 | ); |
| 384 | 378 | |
| 385 | 379 | // If avatar uploads are not disabled, add avatar option. |
| 386 | 380 | $disabled_avatar_uploads = (int) bp_disable_group_avatar_uploads(); |
| 387 | 381 | if ( ! $disabled_avatar_uploads && $bp->avatar->show_avatars ) { |
| 388 | | $this->group_creation_steps['group-avatar'] = array( |
| | 382 | $group_creation_steps['group-avatar'] = array( |
| 389 | 383 | 'name' => _x( 'Photo', 'Group screen nav', 'buddypress' ), |
| 390 | 384 | 'position' => 20 |
| 391 | 385 | ); |
| 392 | 386 | } |
| 393 | 387 | |
| 394 | 388 | if ( bp_group_use_cover_image_header() ) { |
| 395 | | $this->group_creation_steps['group-cover-image'] = array( |
| | 389 | $group_creation_steps['group-cover-image'] = array( |
| 396 | 390 | 'name' => _x( 'Cover Image', 'Group screen nav', 'buddypress' ), |
| 397 | 391 | 'position' => 25 |
| 398 | 392 | ); |
| … |
… |
class BP_Groups_Component extends BP_Component {
|
| 400 | 394 | |
| 401 | 395 | // If invitations are enabled, add invitations. |
| 402 | 396 | if ( bp_is_active( 'groups', 'invitations' ) ) { |
| 403 | | $this->group_creation_steps['group-invites'] = array( |
| | 397 | $group_creation_steps['group-invites'] = array( |
| 404 | 398 | 'name' => _x( 'Invites', 'Group screen nav', 'buddypress' ), |
| 405 | 399 | 'position' => 30 |
| 406 | 400 | ); |
| 407 | 401 | } |
| 408 | 402 | |
| | 403 | /** |
| | 404 | * Filters the preconfigured groups creation steps. |
| | 405 | * |
| | 406 | * @since 1.1.0 |
| | 407 | * |
| | 408 | * @param array $value Array of preconfigured group creation steps. |
| | 409 | */ |
| | 410 | $this->group_creation_steps = apply_filters( 'groups_create_group_steps', $group_creation_steps ); |
| | 411 | |
| 409 | 412 | /** |
| 410 | 413 | * Filters the list of valid groups statuses. |
| 411 | 414 | * |