Changeset 2630487
- Timestamp:
- 11/16/2021 06:32:17 AM (4 years ago)
- Location:
- wprequal/trunk
- Files:
-
- 5 edited
-
app/classes/class.Entry.php (modified) (2 diffs)
-
app/classes/class.Lead.php (modified) (1 diff)
-
app/classes/class.Text.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
wprequal.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wprequal/trunk/app/classes/class.Entry.php
r2560782 r2630487 108 108 $email->send_email(); 109 109 110 if ( Core::status( 1 ) ) {111 112 $text = Text::instance( $lead_id );113 $text->send_text();114 115 }116 117 110 if ( Core::status( 2 ) ) { 118 111 … … 125 118 126 119 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 128 126 } 129 127 -
wprequal/trunk/app/classes/class.Lead.php
r2564598 r2630487 277 277 } 278 278 279 if ( Core::status( 1 ) ) { 280 do_action( 'wprequal_after_lead_created', $lead_id ); 281 } 282 279 283 return $lead_id; 280 284 -
wprequal/trunk/app/classes/class.Text.php
r2356316 r2630487 30 30 */ 31 31 32 private $ post_id;32 private $lead_id; 33 33 34 34 /** … … 41 41 * Text constructor. 42 42 * 43 * @param $ post_id43 * @param $lead_id 44 44 */ 45 45 46 public function __construct( $ post_id ) {46 public function __construct( $lead_id ) { 47 47 48 parent::__construct( $ post_id );48 parent::__construct( $lead_id ); 49 49 50 $this-> post_id = $post_id;50 $this->lead_id = $lead_id; 51 51 52 52 self::$instance = $this; … … 57 57 * Instance. 58 58 * 59 * @param $ post_id59 * @param $lead_id 60 60 * 61 61 * @return Text 62 62 */ 63 63 64 public static function instance( $ post_id ) {64 public static function instance( $lead_id ) { 65 65 66 66 if ( self::$instance === null ) { 67 self::$instance = new self( $ post_id );67 self::$instance = new self( $lead_id ); 68 68 } 69 69 … … 82 82 if ( $gateway = $this->gateway() ) { 83 83 84 Log::write( 'wprequal-text', 'Attempt: ' . $gateway );85 86 84 add_action( 'wp_mail_failed', array( $this, 'log_mailer_error' ), 10, 1 ); 87 85 add_filter( 'wp_mail', array( $this, 'email_headers' ) ); … … 90 88 $msg = 'Please contact your new lead ASAP: '; 91 89 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(); 94 92 95 93 $data = array_merge( $contact, $fields ); 96 94 $content = $msg . join( '|', $data ); 97 95 98 Log::write( 'text-content', $content ); 96 Log::write( 'wprequal-text', 'Attempt: ' . $gateway ); 97 Log::write( 'wprequal-text', $content ); 99 98 100 99 if ( ! wp_mail( $gateway, $subject, $content ) ) { -
wprequal/trunk/readme.txt
r2583704 r2630487 3 3 Tags: 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 4 4 Requires at least: 4.0 5 Tested up to: 5. 7.25 Tested up to: 5.8.2 6 6 Requires PHP: 5.6 7 7 Stable tag: /trunk … … 159 159 == Change Log == 160 160 161 = 7.9.2 = 162 * Tweek - Update readme 163 * Update - Test WP Core 7.8.2 164 161 165 = 7.9.1 = 162 166 * Improvement - Add filter for post entry data -
wprequal/trunk/wprequal.php
r2583704 r2630487 4 4 Plugin URI: https://wprequal.com 5 5 Description: Mortgage and Real Estate Lead Capture System 6 Version: 7.9. 16 Version: 7.9.2 7 7 Author: WPrequal 8 8 Author URI: https://wprequal.com … … 44 44 45 45 $constants = array( 46 'WPREQUAL_VERSION' => '7.9. 1',46 'WPREQUAL_VERSION' => '7.9.2', 47 47 'WPREQOAL_PLUGIN' => plugin_basename( __FILE__ ), 48 48 'WPREQUAL_OPTIONS' => 'wprequal_options',
Note: See TracChangeset
for help on using the changeset viewer.