subdirectory_reserved_names хук-фильтрWP 3.0.0

Filters reserved site names on a sub-directory Multisite installation.


add_filter( 'subdirectory_reserved_names', 'wp_kama_subdirectory_reserved_names_filter' );

 * Function for `subdirectory_reserved_names` filter-hook.
 * @param string[] $subdirectory_reserved_names Array of reserved names.
 * @return string[]
function wp_kama_subdirectory_reserved_names_filter( $subdirectory_reserved_names ){

	// filter...
	return $subdirectory_reserved_names;
Array of reserved names.

Список изменений

С версии 3.0.0 Введена.
С версии 4.4.0 'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added to the reserved names list.

Где вызывается хук

wp-includes/ms-functions.php 2713
return apply_filters( 'subdirectory_reserved_names', $names );

Где используется хук в WordPress

Использование не найдено.