Changeset 13202
- Timestamp:
- 12/31/2021 01:19:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r13156 r13202 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 Group creation steps. 368 $group_creation_steps = array( 375 369 'group-details' => array( 376 370 'name' => _x( 'Details', '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 … … 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 … … 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 } 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 ); 408 411 409 412 /**
Note: See TracChangeset
for help on using the changeset viewer.