BP_Group_Extension::get_default_screens()
Gather configuration data about your screens.
Description
Return
(array)
Source
File: bp-groups/classes/class-bp-group-extension.php
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | protected function get_default_screens() { $this ->setup_class_info(); $screens = array ( 'create' => array ( 'position' => 81, ), 'edit' => array ( 'submit_text' => __( 'Save Changes' , 'buddyboss' ), ), 'admin' => array ( 'metabox_context' => 'normal' , 'metabox_priority' => 'core' , ), ); foreach ( $screens as $context => & $screen ) { $screen [ 'enabled' ] = true; $screen [ 'name' ] = $this ->name; $screen [ 'slug' ] = $this ->slug; $screen [ 'screen_callback' ] = $this ->get_screen_callback( $context , 'screen' ); $screen [ 'screen_save_callback' ] = $this ->get_screen_callback( $context , 'screen_save' ); } return $screens ; } |
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.