bp_core_admin_settings

The main settings page.

Description

bp_core_admin_settings(); 

Usage

  1. if ( !function_exists( 'bp_core_admin_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_admin_settings(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-settings.php  
  1. function bp_core_admin_settings() { 
  2.  
  3. // We're saving our own options, until the WP Settings API is updated to work with Multisite. 
  4. $form_action = add_query_arg( 'page', 'bp-settings', bp_get_admin_url( 'admin.php' ) ); 
  5.  
  6. ?> 
  7.  
  8. <div class="wrap"> 
  9.  
  10. <h1><?php _e( 'BuddyPress Settings', buddypress ); ?> </h1> 
  11.  
  12. <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Options', buddypress ) ); ?></h2> 
  13.  
  14. <form action="<?php echo esc_url( $form_action ) ?>" method="post"> 
  15.  
  16. <?php settings_fields( buddypress ); ?> 
  17.  
  18. <?php do_settings_sections( buddypress ); ?> 
  19.  
  20. <p class="submit"> 
  21. <input type="submit" name="submit" class="button-primary" value="<?php esc_attr_e( 'Save Settings', buddypress ); ?>" /> 
  22. </p> 
  23. </form> 
  24. </div> 
  25.  
  26. <?php