public/wordpress/wp-content/plugins/wp-courseware/includes/emails/email.php
/**
	 * Trigger Email.
	 *
	 * @since 4.3.0
	 *
	 * @return bool True if successfully triggered.
	 */
Trigger Email.

@return bool True if successfully triggered.
Trigger Email . @return bool True if successfully triggered .
public function trigger_send() {
		$triggered = false;
		$this->log( sprintf( 'Triggered Email: %s', $this->get_title() ) );
		if ( $this->testing && ! $this->get_recipient() ) {
			$this->recipient = $this->get_site_admin_email();
		}
		$this->log( sprintf( 'Sending Email To: %s', $this->get_recipient() ) );
		if ( $this->is_enabled() && $this->get_recipient() ) {
			$this->log( 'Email Enabled. Sending...' );
			$triggered = $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
		}
		return $triggered;
	}
public function trigger_send ( ) { $ triggered = false ; $ this -> log ( sprintf ( 'Triggered Email: %s' , $ this -> get_title ( ) ) ) ; if ( $ this -> testing && ! $ this -> get_recipient ( ) ) { $ this -> recipient = $ this -> get_site_admin_email ( ) ; } $ this -> log ( sprintf ( 'Sending Email To: %s' , $ this -> get_recipient ( ) ) ) ; if ( $ this -> is_enabled ( ) && $ this -> get_recipient ( ) ) { $ this -> log ( 'Email Enabled. Sending...' ) ; $ triggered = $ this -> send ( $ this -> get_recipient ( ) , $ this -> get_subject ( ) , $ this -> get_content ( ) , $ this -> get_headers ( ) , $ this -> get_attachments ( ) ) ; } return $ triggered ; }
Trigger Email.
Trigger Email .