plugin_files_exclusions

過濾鉤子
apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' )

plugin_files_exclusions 是一個過濾器鉤子,它允許開發者從外掛更新過程中排除特定的檔案。這個鉤子可以用來排除不應該被更新的檔案,如自定義或修改的檔案。

掃描資料夾時過濾排除的目錄和檔案的陣列。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );
$exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );
$exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );

常見問題

FAQs
檢視更多 >