BP_Group_Extension::setup_screens()
Set up screens array based on params.
Description
Source
File: bp-groups/classes/class-bp-group-extension.php
549 550 551 552 553 554 555 556 557 558 559 560 561 | protected function setup_screens() { foreach ( ( array ) $this ->params[ 'screens' ] as $context => $screen ) { if ( empty ( $screen [ 'slug' ] ) ) { $screen [ 'slug' ] = $this ->slug; } if ( empty ( $screen [ 'name' ] ) ) { $screen [ 'name' ] = $this ->name; } $this ->screens[ $context ] = $screen ; } } |
Changelog
Version | Description |
---|---|
BuddyPress 1.8.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.