wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_subdirectory_reserved_names › WordPress Function
Seit4.4.0
Veraltetn/v
› get_subdirectory_reserved_names ( Keine Parameter )
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Retrieves a list of reserved site on a sub-directory Multisite installation.
Ähnliche Funktionen: get_registered_nav_menus, get_current_site_name, get_editor_stylesheets, get_author_name, get_category_feed_link
Quellcode
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 string[] $subdirectory_reserved_names Array of reserved names. */ return apply_filters( 'subdirectory_reserved_names', $names ); }