bp_core_update_directory_page_ids( array $blog_page_ids )

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

Description

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

$blog_page_ids

(Required) The IDs of the WP pages corresponding to BP component directories.

Source

File: bp-core/bp-core-functions.php

function bp_core_update_directory_page_ids( $blog_page_ids ) {
	bp_update_option( 'bp-pages', $blog_page_ids );
}

Changelog

Changelog
Version Description
BuddyPress 1.5.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.