bp_custom_pages_do_settings_sections( $page )
Output custom pages admin settings.
Description
Source
File: bp-core/admin/bp-core-admin-pages.php
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | function bp_custom_pages_do_settings_sections( $page ) { global $wp_settings_sections , $wp_settings_fields ; if ( ! isset( $wp_settings_sections [ $page ] ) ) return ; foreach ( ( array ) $wp_settings_sections [ $page ] as $section ) { echo "<div class='bp-admin-card section-{$section['id']}'>" ; if ( $section [ 'title' ] ) echo "<h2>{$section['title']}</h2>\n" ; if ( $section [ 'callback' ] ) call_user_func( $section [ 'callback' ], $section ); if ( ! isset( $wp_settings_fields ) || !isset( $wp_settings_fields [ $page ] ) || !isset( $wp_settings_fields [ $page ][ $section [ 'id' ]] ) ) continue ; echo '<table class="form-table">' ; bp_custom_pages_do_settings_fields( $page , $section [ 'id' ] ); echo '</table></div>' ; } } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.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.