Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

MP_Addon_SMS_Callback::send_message_about_new_sms()

Send SMS to admin about a new SMS from the Lead.

Contents


Source Source

File: calculator-sms-add-on/inc/MP_Addon_SMS_Callback.php

	private function send_message_about_new_sms() {

		if ( get_option( MortgagePlatform::$prefix . 'sms' )['send_sms_to_admin_from_lead'] &&
		     ( ! empty( get_option( MortgagePlatform::$prefix . 'sms' )['number_sms_to_admin'] ) ||
		       ! empty( get_option( MortgagePlatform::$prefix . 'sms' )['send_additional_sms'] ) ) ) {

			$admin_phone = MP_Settings::check_data( get_option( MortgagePlatform::$prefix . 'sms' )['number_sms_to_admin'], get_option( MortgagePlatform::$prefix . 'sms' )['send_additional_sms'] );

			return $this->send( $admin_phone, __( 'You have a new SMS from the Lead', 'CalculatorSMSAddon' ) );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.