allow_subdirectory_install
Filters whether to enable the subdirectory installation feature in Multisite.
Usage
add_filter( 'allow_subdirectory_install', 'wp_kama_allow_subdirectory_install_filter' ); /** * Function for `allow_subdirectory_install` filter-hook. * * @param bool $allow Whether to enable the subdirectory installation feature in Multisite. * * @return bool */ function wp_kama_allow_subdirectory_install_filter( $allow ){ // filter... return $allow; }
- $allow(true|false)
- Whether to enable the subdirectory installation feature in Multisite.
Default: false
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
allow_subdirectory_install
wp-admin/includes/network.php 65
if ( apply_filters( 'allow_subdirectory_install', false ) ) {