apply_filters( 'subdirectory_reserved_names', string[] $subdirectory_reserved_names )
- Since
- 3.0.0, 4.4.0
Filters reserved site names on a sub-directory Multisite installation.
Compatibility
- WordPress
- since 4.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$subdirectory_reserved_namesstring[]- Array of reserved names.
Where this hook fires · 1
wp-includes/ms-functions.php:2768get_subdirectory_reserved_names()
Source code
* @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 string[] $subdirectory_reserved_names Array of reserved names. */ return apply_filters( 'subdirectory_reserved_names', $names );} /** * Sends a confirmation request email when a change of network admin email address is attempted. * * The new network admin address will not become active until confirmed.Changelog
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.4.0
'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added to the reserved names list.from the docblock
3.0.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.