wphooks.info - allow_subdirectory_install

allow_subdirectory_install

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-admin/includes/network.php:
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 */
function allow_subdirectory_install() {
	global $wpdb;
		/**
		 * Filters whether to enable the subdirectory installation feature in Multisite.
		 *
		 * @since 3.0.0
		 *
		 * @param bool $allow Whether to enable the subdirectory installation feature in Multisite. Default is false.
		 */
	if ( apply_filters( 'allow_subdirectory_install', false ) ) {
		return true;
	}

	if ( defined( 'ALLOW_SUBDIRECTORY_INSTALL' ) && ALLOW_SUBDIRECTORY_INSTALL ) {
		return true;
	}

	$post = $wpdb->get_row( "SELECT ID FROM $wpdb->posts WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 MONTH) AND post_status = 'publish'" );
	if ( empty( $post ) ) {