subdirectory_reserved_names WordPress Filter Hook

The subdirectory_reserved_names hook is used to filter the list of reserved names on a WordPress site with multiple subdirectories. By default, WordPress reserves the names "admin", "blog", "content", "feed", "includes", "page", "pages", "search", "statistics", "styles", and "xmlrpc" for use as subdirectories. This hook allows you to add or remove reserved names from that list.

apply_filters( 'subdirectory_reserved_names', string[] $subdirectory_reserved_names ) #

Filters reserved site names on a sub-directory Multisite installation.


Parameters

$subdirectory_reserved_names

(string[])Array of reserved names.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added to the reserved names list.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More