MP_BaseLeadSettings::add_send_message_field( string $lead )
Add send mail and SMS field.
Contents
Parameters Parameters
- $lead
-
(string) (Required) post type key
Source Source
File: mortgage-platform/Inc/Base/MP_BaseLeadSettings.php
public function add_send_message_field( $lead ) {
$allow_email = isset( get_option( MortgagePlatform::$prefix . 'email' )['allow_email'] ) ? get_option( MortgagePlatform::$prefix . 'email' )['allow_email'] : false;
//$send_sms = isset( get_option( MortgagePlatform::$prefix . 'sms' )['send_sms_to_user'] ) ? get_option( MortgagePlatform::$prefix . 'sms' )['send_sms_to_user'] : false;
//$send_letter = isset( get_option( MortgagePlatform::$prefix . 'email' )['send_letters'] ) ? get_option( MortgagePlatform::$prefix . 'email' )['send_letters'] : false;
//$send_push = isset( get_option( MortgagePlatform::$prefix . 'email' )['allow_browser_notification'] ) ? get_option( MortgagePlatform::$prefix . 'email' )['allow_browser_notification'] : false;
if ( $allow_email /*|| $send_sms || $send_letter || $send_push*/ ) {
add_meta_box(
MortgagePlatform::$prefix . 'send',
__( 'Send Message', 'mortgage_platform' ),
array( $this, 'send_message_field' ),
$lead,
'normal',
'core'
);
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |