bp_core_admin_pages_settings()
Renders the Pages Setup admin panel.
Description
Source
File: bp-core/admin/bp-core-admin-pages.php
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | function bp_core_admin_pages_settings() { // Flush the rewrite rule to work forum on newly assigned the page. if ( isset( $_GET [ 'added' ] ) && 'true' === $_GET [ 'added' ] ) { flush_rewrite_rules( true ); } ?> <div class = "wrap" > <h2 class = "nav-tab-wrapper" ><?php bp_core_admin_tabs( __( 'Pages' , 'buddyboss' ) ); ?></h2> <form action= "" method= "post" > <?php settings_fields( 'bp-pages' ); bp_custom_pages_do_settings_sections( 'bp-pages' ); printf( '<p class = "submit" > <input type= "submit" name= "submit" class = "button-primary" value= "%s" /> </p>', esc_attr__( 'Save Settings' , 'buddyboss' ) ); ?> </form> </div> <?php } |
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.