This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This filter expects a boolean true/false. If this filter is on, URLs in item meta for file fields will be uploaded to the site when importing files. When it's off, it won't. It is controlled by default with the "Import Files" checkbox on the import screen. However, in some cases, the import doesn't use that interface, but this filter still applies.
Usage
add_filter( 'frm_should_import_files', '__return_true' );
Parameters
- None
Examples
Basic example
add_filter( 'frm_should_import_files', '__return_true' );
Prevent import of images in application
If you use this code example, an installed application template won't import the product images. If you don't have a filter set, it does by default.
add_filter( 'frm_should_import_files', '__return_false' );