theme_scandir_exclusions WordPress Filter Hook

The theme_scandir_exclusions hook allows you to exclude certain directories from being scanned when WordPress is looking for template files. This can be useful if you have a directory that contains temporary or generated files that you don't want WordPress to try to load as templates.

apply_filters( 'theme_scandir_exclusions', string[] $exclusions ) #

Filters the array of excluded directories and files while scanning theme folder.


Parameters

$exclusions

(string[])Array of excluded directories and files.


Top ↑

Source

File: wp-includes/class-wp-theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.4Introduced.

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.