The malware scanner plugin includes a filter that provides flexibility in managing ignored file extensions. This feature allows users to customize the list of default files excluded from scanning and expand it as needed.
Below is an example of how to utilize this filter:
add_filter( 'securityninja_ignored_file_extensions', 'do_filter_securityninja_ignored_file_extensions' );
function do_filter_securityninja_ignored_file_extensions( $ignore_list ) {
$ignore_list[] = 'css';
return $ignore_list;
}
By leveraging this filter, users can conduct a more thorough scan of their files by removing extensions they want to scan or adding additional file types to ignore. While this can improve the depth of the scan, it’s important to note that it may also increase the scan duration and potentially lead to false positives.