In the export file – remove the parameter at the end of the url “&dl=1”

[ad_1]

Hi @ddjeanne,

Yes that is possible! By default we choose to add the download attribute as it makes the most sense for most of our customers. So there isn’t a hook to disable that behaviour (yet).

However, we can change the output value with a different hook.

If you add the following snippet to your functions.php or via the CodeSnippets plugin, it should remove that part from those urls.

add_filter( 'gfexcel_field_value_fileupload', function ( $value ) {
	return str_replace( '&dl=1', '', (string) $value );
} );

See https://gfexcel.com/docs/changing-values/ for more information on this hook.

Kind regards,

Doeke

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer