Plugin Directory

Changeset 2630487


Ignore:
Timestamp:
11/16/2021 06:32:17 AM (4 years ago)
Author:
wprequal
Message:

Commit v7.9.2

Location:
wprequal/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wprequal/trunk/app/classes/class.Entry.php

    r2560782 r2630487  
    108108            $email->send_email();
    109109
    110             if ( Core::status( 1 ) ) {
    111 
    112                 $text = Text::instance( $lead_id  );
    113                 $text->send_text();
    114 
    115             }
    116 
    117110            if ( Core::status( 2 ) ) {
    118111
     
    125118
    126119            if ( Core::status( 1 ) ) {
    127                 do_action( 'wprequal_after_post_entry', $entry );
     120
     121                $text = Text::instance( $lead_id  );
     122                $text->send_text();
     123
     124                do_action( 'wprequal_after_post_entry', $entry, $lead_id );
     125
    128126            }
    129127
  • wprequal/trunk/app/classes/class.Lead.php

    r2564598 r2630487  
    277277        }
    278278
     279        if ( Core::status( 1 ) ) {
     280            do_action( 'wprequal_after_lead_created', $lead_id );
     281        }
     282
    279283        return $lead_id;
    280284
  • wprequal/trunk/app/classes/class.Text.php

    r2356316 r2630487  
    3030     */
    3131
    32     private $post_id;
     32    private $lead_id;
    3333
    3434    /**
     
    4141     * Text constructor.
    4242     *
    43      * @param $post_id
     43     * @param $lead_id
    4444     */
    4545
    46     public function __construct( $post_id ) {
     46    public function __construct( $lead_id ) {
    4747
    48         parent::__construct( $post_id );
     48        parent::__construct( $lead_id );
    4949
    50         $this->post_id = $post_id;
     50        $this->lead_id = $lead_id;
    5151
    5252        self::$instance = $this;
     
    5757     * Instance.
    5858     *
    59      * @param $post_id
     59     * @param $lead_id
    6060     *
    6161     * @return Text
    6262     */
    6363
    64     public static function instance( $post_id ) {
     64    public static function instance( $lead_id ) {
    6565
    6666        if ( self::$instance === null ) {
    67             self::$instance = new self( $post_id );
     67            self::$instance = new self( $lead_id );
    6868        }
    6969
     
    8282        if ( $gateway = $this->gateway() ) {
    8383
    84             Log::write( 'wprequal-text', 'Attempt: ' . $gateway );
    85 
    8684            add_action( 'wp_mail_failed', array( $this, 'log_mailer_error' ), 10, 1 );
    8785            add_filter( 'wp_mail', array( $this, 'email_headers' ) );
     
    9088            $msg     = 'Please contact your new lead ASAP: ';
    9189
    92             $contact = get_post_meta( $this->post_id, 'contact', TRUE ) ?: array();
    93             $fields  = get_post_meta( $this->post_id, 'fields', TRUE )  ?: array();
     90            $contact = get_post_meta( $this->lead_id, 'contact', TRUE ) ?: array();
     91            $fields  = get_post_meta( $this->lead_id, 'fields', TRUE )  ?: array();
    9492
    9593            $data    = array_merge( $contact, $fields );
    9694            $content = $msg . join( '|', $data );
    9795
    98             Log::write( 'text-content', $content );
     96            Log::write( 'wprequal-text', 'Attempt: ' . $gateway );
     97            Log::write( 'wprequal-text', $content );
    9998
    10099            if ( ! wp_mail( $gateway, $subject, $content ) ) {
  • wprequal/trunk/readme.txt

    r2583704 r2630487  
    33Tags: mortgage, lead capture, lead generation, contact form, lead manager, crm integration, crm, forms. form builder, amortize, mortgage calculator, amortization calculator, quiz, survey, real estate, realtor
    44Requires at least: 4.0
    5 Tested up to: 5.7.2
     5Tested up to: 5.8.2
    66Requires PHP: 5.6
    77Stable tag: /trunk
     
    159159== Change Log ==
    160160
     161= 7.9.2 =
     162* Tweek - Update readme
     163* Update - Test WP Core 7.8.2
     164
    161165= 7.9.1 =
    162166* Improvement - Add filter for post entry data
  • wprequal/trunk/wprequal.php

    r2583704 r2630487  
    44Plugin URI:  https://wprequal.com
    55Description: Mortgage and Real Estate Lead Capture System
    6 Version:     7.9.1
     6Version:     7.9.2
    77Author:      WPrequal
    88Author URI:  https://wprequal.com
     
    4444
    4545$constants = array(
    46     'WPREQUAL_VERSION'            => '7.9.1',
     46    'WPREQUAL_VERSION'            => '7.9.2',
    4747    'WPREQOAL_PLUGIN'             => plugin_basename( __FILE__ ),
    4848    'WPREQUAL_OPTIONS'            => 'wprequal_options',
Note: See TracChangeset for help on using the changeset viewer.