Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_subdirectory_reserved_names ›

Desde4.4.0
Obsoleton/a
get_subdirectory_reserved_names ( Sem parâmetros )
Retorna:
  • (array) $names Array of reserved subdirectory names.
Definido em:
Codex:

Retrieves a list of reserved site on a sub-directory Multisite installation.



Fonte

function get_subdirectory_reserved_names() {
	$names = array(
		'page',
		'comments',
		'blog',
		'files',
		'feed',
		'wp-admin',
		'wp-content',
		'wp-includes',
		'wp-json',
		'embed',
	);

	/**
	 * Filters reserved site names on a sub-directory Multisite installation.
	 *
	 * @since 3.0.0
	 * @since 4.4.0 'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added
	 *              to the reserved names list.
	 *
	 * @param array $subdirectory_reserved_names Array of reserved names.
	 */
	return apply_filters( 'subdirectory_reserved_names', $names );
}