Hi @rajh2350,
That’s a very fair point. I added it to our backlog to add this to the other add-ons as well. Thanks!
In the mean time; since you have GravityExport (pro) you can add the following snippet (by using the Code Snippets plugin or in your functions.php
) to replace these parts on all add-ons.
// Replace {DATE} / {YYYY} options on GravityExport Filters Add-on
add_filter( 'gfexcel_renderer_filename', function ( string $filename ): string {
global $wp;
$feed = \GFAPI::get_feed( $wp->query_vars['gfexcel_download_feed'] ?? 0 );
$form = \GFAPI::get_form( $wp->query_vars['gfexcel_download_form'] ?? 0 );
if ( ! is_array( $feed ) || ! $form ) {
return $filename;
}
return \GravityKit\GravityExport\Save\Addon\SaveAddon::get_filename( $feed, $form );
}, 100 ); // 100 because we want this after the regular hooks.
-
This reply was modified 1 year, 11 months ago by Doeke Norg.