bp_core_add_illegal_names()

Add illegal blog names to WP so that root components will not conflict with blog names on a subdirectory installation.

Description

For example, it would stop someone creating a blog with the slug "groups".

Source

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

function bp_core_add_illegal_names() {
	update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() );
}

Changelog

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