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

bp_core_add_illegal_names(); 

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


Usage

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

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_core_add_illegal_names() { 
  2. update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() );