bp_core_components_subdirectory_reserved_names( array $names = array() )

Adds BuddyPress components’ slugs to the WordPress Multisite subdirectory reserved names.


Parameters Parameters

$names

(array) (Optional) The WordPress Multisite subdirectory reserved names.

Default value: array()


Top ↑

Return Return

(array) The WordPress & BuddyPress Multisite subdirectory reserved names.


Source Source

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

function bp_core_components_subdirectory_reserved_names( $names = array() ) {
	$bp_pages = (array) buddypress()->pages;

	return array_merge( $names, wp_list_pluck( $bp_pages, 'slug' ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.