allow_subdirectory_install
Filters whether to enable the subdirectory installation feature in Multisite.
Использование
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.
По умолчанию: false
Список изменений
| С версии 3.0.0 | Введена. |
Где вызывается хук
allow_subdirectory_install
wp-admin/includes/network.php 65
if ( apply_filters( 'allow_subdirectory_install', false ) ) {