plugin_files_exclusions

过滤钩子


apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' )
参数
  • (string[])
    $exclusions
    Array of excluded directories and files.
    Required:
定义位置
  • wp-admin/includes/plugin.php
    , line 242
引入
4.9.0
弃用

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

$exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );