woocommerce_file_download_path

woocommerce_file_download_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_file_download_path') is found 5 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 502
    				}
    				$download = new WC_Product_Download();
    				$download->set_id( $key );
    				$download->set_name( $value['name'] ? $value['name'] : wc_get_filename_from_url( $value['file'] ) );
    				$download->set_file( apply_filters( 'woocommerce_file_download_path', $value['file'], $product, $key ) );
    				$downloads[] = $download;
    			}
    			$product->set_downloads( $downloads );
    		}
    	}
    
    
  • /includes/legacy/api/v2/class-wc-api-products.php line 1537
     
    			$download = new WC_Product_Download();
    			$download->set_id( ! empty( $file['id'] ) ? $file['id'] : wp_generate_uuid4() );
    			$download->set_name( $file['name'] ? $file['name'] : wc_get_filename_from_url( $file['file'] ) );
    			$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
    			$files[]  = $download;
    		}
    		$product->set_downloads( $files );
    
    		return $product;
    	}
    
  • /includes/legacy/api/v3/class-wc-api-products.php line 2036
     
    			$download = new WC_Product_Download();
    			$download->set_id( ! empty( $file['id'] ) ? $file['id'] : wp_generate_uuid4() );
    			$download->set_name( $file['name'] ? $file['name'] : wc_get_filename_from_url( $file['file'] ) );
    			$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
    			$files[]  = $download;
    		}
    		$product->set_downloads( $files );
    
    		return $product;
    	}
    
  • /includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php line 967
     
    			$download = new WC_Product_Download();
    			$download->set_id( ! empty( $file['id'] ) ? $file['id'] : wp_generate_uuid4() );
    			$download->set_name( $file['name'] ? $file['name'] : wc_get_filename_from_url( $file['file'] ) );
    			$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
    			$files[]  = $download;
    		}
    		$product->set_downloads( $files );
    
    		return $product;
    	}
    
  • /includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php line 1425
     
    			$download = new WC_Product_Download();
    			$download->set_id( ! empty( $file['id'] ) ? $file['id'] : wp_generate_uuid4() );
    			$download->set_name( $file['name'] ? $file['name'] : wc_get_filename_from_url( $file['file'] ) );
    			$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
    			$files[] = $download;
    		}
    		$product->set_downloads( $files );
    
    		return $product;
    	}