WordPress at a glance
function is not described

get_subdirectory_reserved_names() WP 4.4.0

Retrieves a list of reserved site on a sub-directory Multisite installation.

Hooks in function

Array. $names Array of reserved subdirectory names.



Code of get subdirectory reserved names: wp-includes/ms-functions.php WP 5.2.1

function get_subdirectory_reserved_names() {
	$names = array(

	 * Filters reserved site names on a sub-directory Multisite installation.
	 * @since 3.0.0
	 * @since 4.4.0 'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added
	 *              to the reserved names list.
	 * @param array $subdirectory_reserved_names Array of reserved names.
	return apply_filters( 'subdirectory_reserved_names', $names );