bp_core_admin_get_static_pages

Generate a list of static pages, for use when building Components panel markup.

Description

(array) bp_core_admin_get_static_pages(); 

By default, this list contains register and activate..

Returns (array)


Usage

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

Defined (1)

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

/bp-core/admin/bp-core-admin-slugs.php  
  1. function bp_core_admin_get_static_pages() { 
  2. $static_pages = array( 
  3. 'register' => __( 'Register', buddypress ),  
  4. 'activate' => __( 'Activate', buddypress ),  
  5. ); 
  6.  
  7. /** 
  8. * Filters the default static pages for BuddyPress setup. 
  9. * @since 1.6.0 
  10. * @param array $static_pages Array of static default static pages. 
  11. */ 
  12. return apply_filters( 'bp_static_pages', $static_pages );