How do I attach a pdf file to a Gravity Forms Notification?
问题 Gravity forms offers a way to attach files from the file uploader (See code below), but how would I change this code to simply attach my own PDF file from either a hidden field value or simply paste the pdf file within this code? I tried a few things but it didn't work. Any help would be appreciated! add_filter( 'gform_notification', 'change_user_notification_attachments', 10, 3 ); function change_user_notification_attachments( $notification, $form, $entry ) { //There is no concept of user