Save up to 50% off during Black Friday!

fg_entryautomation_maximum_attachment_size

Description

This filter is executed when attempting to send the export action email and can be used to set the maximum file size allowed for the export attachment.

Usage

PHP
add_filter( 'fg_entryautomation_maxium_attachment_size', 'your_function_name', 10, 4 );

Parameters

  • $maximum_file_size int
    The maximum file size allowed for attachment, in bytes. Defaults to 10485760 (or 2 MB).
  • $settings array
    The current Automation action’s settings.
  • $form array
    The current Automation action’s form.
  • $file_name string
    The file name of the current Automation action’s export file.

Examples

Increasing Attachment Size

This example increases the maximum allowed file size to 10 MB.