Notification Attachments for Gravity Forms

By kgmservizi

★ 5.0/5 (12 ratings)2,000+ active installationsVersion 0.6.5

Send attachment in Gravity Forms Notification

Description

REQUIREMENTS
LATEST VERSION IS COMPATIBLE ONLY WITH GRAVITY FORMS > 2.5+

Don’t work? Open ticket, we answer in max 48h.

This plugin requires Gravity Forms.

Send attachment in Gravity Forms Notification, you can add easily from Gravity Forms Notification setting.

Filters

gf_kgm_notification_attachment_path lets other plugins or themes change the path of an attached file before the notification is sent. The returned path must still point inside the uploads directory, otherwise the file is skipped.

add_filter( 'gf_kgm_notification_attachment_path', function ( $path, $attachment_id, $form, $entry ) {
    return $path;
}, 10, 4 );

gf_kgm_notification_attachment_get_meta lets you change the preview data (id, mime_file, mime, title) shown for each attachment in the notification settings.

add_filter( 'gf_kgm_notification_attachment_get_meta', function ( $meta, $attachment_id, $attachment ) {
    return $meta;
}, 10, 3 );

Installation

  1. Upload the plugin files to the ‘/wp-content/plugins/’ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Add attachment in Gravity Forms Notification.

FAQ

Where I can add files?

You can add one or multiple files as attachment in any notification settings of your Gravity Forms module.

I can add more than one attachment?

Yes.

How plugin work?

Plugin use default Gravity Forms send hook.

Changelog

0.6.5

  • Tested up to WordPress 7.1.
  • Fixed the screen-reader label of the remove button when an attachment title contains a “$” character.
  • Saving a notification now keeps only attachments the current user is allowed to read.
  • Saves that do not come from the notification screen no longer clear the attachment list.
  • Code style aligned with the WordPress Coding Standards.
  • Readme: corrected the filter examples and the plugin tags.

0.6.4

  • Compatible with Gravity Forms 3.0.
  • The “Gravity Forms is not active” notice is now shown only to users who can manage plugins, and links to the plugins screen.
  • Internal reliability and hardening improvements.

0.6.3

  • Update compatibility versions (PHP/WP).

0.6.2

  • Bugfix.

0.6.1

  • Improved attachment path handling with CDN support
  • Better compatibility with other plugins
  • Other bugfix

0.5.6

  • Bugfix.

0.5.5

  • 6.6 compatibility.

0.5.4

  • Bugfix.

0.5.3

  • Updated deprecated filter.

0.5.2

  • Bugfix and compatibility.

0.5.1

  • Bugfix and compatibility.

0.5

  • Filter for upload dir thanks to @effakt

0.4

  • Bugfix.

0.3.2

  • FIX for non thumb image (icon)

0.3.1

  • FIX for non thumb image

0.3

  • FIX not updated attachment after save
  • FIX error after add attachment

0.2

  • DANGER! Compatibility Gravity Forms 2.5+ – DON’T UPDATE IF YOU USE PREVIOUS VERSION

0.1.1

  • Compatibility WordPress 5.7

0.1

  • Initial release