allow_subdirectory_install WordPress Filter Hook
The allow_subdirectory_install hook allows you to enable or disable the ability to install WordPress in a subdirectory. This can be useful if you want to prevent users from installing WordPress in a subdirectory for security reasons.
apply_filters( 'allow_subdirectory_install', bool $allow ) #
Filters whether to enable the subdirectory installation feature in Multisite.
Parameters
- $allow
(bool)Whether to enable the subdirectory installation feature in Multisite. Default false.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |