Add docblock for revised filter.
This commit is contained in:
parent
55e1fadd3d
commit
6c2778c109
|
@ -92,6 +92,12 @@ class WC_Product_CSV_Importer_Controller {
|
|||
* @return bool
|
||||
*/
|
||||
public static function is_file_valid_csv( $file, $check_path = true ) {
|
||||
/**
|
||||
* Can be used to override the decision to check the import file path.
|
||||
*
|
||||
* @param bool $check_import_file_path If the import file path should be checked.
|
||||
* @param string $file Path of the file to be checked.
|
||||
*/
|
||||
if ( $check_path && apply_filters( 'woocommerce_product_csv_importer_check_import_file_path', true, $file ) && false !== stripos( $file, '://' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue