Plugin Directory

Changeset 3298323


Ignore:
Timestamp:
05/21/2025 08:54:50 PM (9 months ago)
Author:
maximumsoftware
Message:

Deploy from Git

Location:
pdf-forms-for-wpforms/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pdf-forms-for-wpforms/trunk/languages/pdf-forms-for-wpforms.pot

    r3214289 r3298323  
    407407
    408408#: pdf-forms-for-wpforms.php:1644
    409 msgid "Have a question/comment/problem?  Feel free to use {a-href-forum}the support forum{/a}."
     409msgid "Have a question/comment/problem?  Feel free to use {a-href-forum}the support forum{/a} and view {a-href-tutorial}the tutorial video{/a}."
    410410msgstr ""
    411411
  • pdf-forms-for-wpforms/trunk/pdf-forms-for-wpforms.php

    r3265807 r3298323  
    44 * Plugin URI: https://pdfformsfiller.org/
    55 * Description: Build WPForms from PDF forms. Get PDFs filled automatically and attached to email messages and/or website responses on form submissions.
    6  * Version: 1.3.0
     6 * Version: 1.3.1
    77 * Requires at least: 5.4
    88 * Requires PHP: 5.5
     
    2525    class Pdf_Forms_For_WPForms
    2626    {
    27         const VERSION = '1.3.0';
    28         const MIN_WPFORMS_VERSION = '1.6.9';
     27        const VERSION = '1.3.1';
     28        const MIN_WPFORMS_VERSION = '1.7.7';
    2929        const MAX_WPFORMS_VERSION = '1.9.99';
    3030        private static $BLACKLISTED_WPFORMS_VERSIONS = array();
     
    8282           
    8383            add_filter( 'wpforms_smarttags_process_value', array( $this, 'plaintext_smart_tag_value_workaround_filter' ), PHP_INT_MAX, 6 );
    84             // fill_pdfs: we can't use wpforms_process_complete (because notifications have already been sent) and wpforms_process because uploaded files haven't been processed yet
    85             add_filter( 'wpforms_process_after_filter', array( $this, 'fill_pdfs' ), 999999, 3 );
     84            // fill_pdfs: we can't use wpforms_process_complete (because notifications have already been sent)
     85            // and wpforms_process because uploaded files haven't been processed yet
     86            // we need entry_id as well, which is only provided to wpforms_process_entry_saved
     87            add_action( 'wpforms_process_entry_saved', array( $this, 'fill_pdfs' ), 99, 4 );
    8688            add_action( 'wpforms_process_complete', array( $this, 'remove_tmp_dir' ), 99, 0 );
    8789            add_filter( 'wpforms_emails_send_email_data', array( $this, 'attach_files' ), 10, 2 );
     
    877879         * We need to fill the pdf's document fields and then create attachment file and attach them
    878880         */
    879         public function fill_pdfs( $wpforms_fields, $entry, $form_data )
     881        public function fill_pdfs( $wpforms_fields, $entry, $form_data, $entry_id )
    880882        {
    881883            try
    882884            {
    883                 $entry_id = $entry["id"];
    884                
    885885                $attachments = array();
    886886                $mappings = array();
     
    14291429                $this->wpforms_mail_attachments = array();
    14301430            }
    1431            
    1432             return $wpforms_fields;
    14331431        }
    14341432       
     
    16721670                'show-smart-tags' => esc_html__( 'Show Smart Tags', 'pdf-forms-for-wpforms' ),
    16731671                'help-message' => self::replace_tags(
    1674                     esc_html__( "Have a question/comment/problem?  Feel free to use {a-href-forum}the support forum{/a}.", 'pdf-forms-for-wpforms' ),
     1672                    esc_html__( "Have a question/comment/problem?  Feel free to use {a-href-forum}the support forum{/a} and view {a-href-tutorial}the tutorial video{/a}.", 'pdf-forms-for-wpforms' ),
    16751673                    array(
    16761674                        'a-href-forum' => '<a href="https://wordpress.org/support/plugin/pdf-forms-for-wpforms/" target="_blank">',
     1675                        'a-href-tutorial' => '<a href="https://youtu.be/3V2k7ITVNlo" target="_blank">',
    16771676                        '/a' => '</a>',
    16781677                    )
  • pdf-forms-for-wpforms/trunk/readme.txt

    r3265807 r3298323  
    11=== PDF Forms Filler for WPForms ===
    2 Version: 1.3.0
    3 Stable tag: 1.3.0
     2Version: 1.3.1
     3Stable tag: 1.3.1
    44Tested up to: 6.8
    55Tags: pdf, form, wpforms, email, download
     
    3030Please see [Pdf.Ninja Terms of Use](https://pdf.ninja/#terms) and [Pdf.Ninja Privacy Policy](https://pdf.ninja/#privacy).
    3131
     32Please see the [tutorial video](https://youtu.be/3V2k7ITVNlo) for detailed information.
     33
     34[youtube http://www.youtube.com/watch?v=3V2k7ITVNlo]
     35
    3236Requirements:
    3337 * PHP 5.5 or newer
     
    5155
    5256== Changelog ==
     57
     58= 1.3.1 =
     59
     60* Release date: May 21, 2025
     61
     62* Fixed the issue of {entry_id} smart tag not working correctly
    5363
    5464= 1.3.0 =
Note: See TracChangeset for help on using the changeset viewer.