WordPress at a glance
filter is not described

plugin_files_exclusions filter-hook . WP 4.9.0

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


add_filter( 'plugin_files_exclusions', 'filter_function_name_4854' );
function filter_function_name_4854( $exclusions ){
	// filter...

	return $exclusions;
Array of excluded directories and files.

Where the hook is called

wp-admin/includes/plugin.php 208
$exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );

Where the hook is used (in WP core)

Does not used.