[2.3] woocommerce_downloadable_file_allowed_mime_types filter

#8362
This commit is contained in:
Mike Jolley 2015-06-15 15:37:34 +01:00
parent b123dc87a3
commit 75b01c5201
1 changed files with 1 additions and 1 deletions

View File

@ -1229,7 +1229,7 @@ class WC_Meta_Box_Product_Data {
$file_names = isset( $_POST['_wc_file_names'] ) ? $_POST['_wc_file_names'] : array();
$file_urls = isset( $_POST['_wc_file_urls'] ) ? array_map( 'trim', $_POST['_wc_file_urls'] ) : array();
$file_url_size = sizeof( $file_urls );
$allowed_file_types = get_allowed_mime_types();
$allowed_file_types = apply_filters( 'woocommerce_downloadable_file_allowed_mime_types', get_allowed_mime_types() );
for ( $i = 0; $i < $file_url_size; $i ++ ) {
if ( ! empty( $file_urls[ $i ] ) ) {