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.


Top ↑

Source

File: wp-admin/includes/network.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
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.