bp_core_update_directory_page_ids

Store the list of BP directory pages in the appropriate meta table.

Description

bp_core_update_directory_page_ids( (array) $blog_page_ids ); 

The bp-pages data is stored in site_options (falls back to options on non-MS), in an array keyed by blog_id. This allows you to change your bp_get_root_blog_id() and go through the setup process again.

Parameters (1)

0. $blog_page_ids (array)
The IDs of the WP pages corresponding to BP component directories.

Usage

  1. if ( !function_exists( 'bp_core_update_directory_page_ids' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-functions.php'; 
  3.  
  4. // The IDs of the WP pages corresponding to BP 
  5. // component directories. 
  6. $blog_page_ids = array(); 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_core_update_directory_page_ids($blog_page_ids); 
  10.  

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_core_update_directory_page_ids( $blog_page_ids ) { 
  2. bp_update_option( 'bp-pages', $blog_page_ids );