public/wordpress/wp-content/plugins/wp-courseware/includes/emails/email-completed-installment-plan.php
/**
	 * Trigger Email Completed Subscription.
	 *
	 * @since 4.6.0
	 *
	 * @param int          $subscription_id The subscription id.
	 * @param Subscription $subscription The subscription object.
	 */
Trigger Email Completed Subscription.

@param int          $subscription_id The subscription id.
@param Subscription $subscription The subscription object.
Trigger Email Completed Subscription . @param int $subscription_id The subscription id . @param Subscription $subscription The subscription object .
public function trigger( $subscription_id, $subscription = false ) {
		if ( $subscription_id && ! $subscription instanceof Subscription ) {
			$subscription = wpcw_get_subscription( $subscription_id );
		}
		if ( $subscription instanceof Subscription ) {
			$this->object = $subscription;
		}
		if ( $student_email = $this->object->get_student_email() ) {
			$this->recipient = $student_email;
		}
		if ( $this->object instanceof Subscription && ! $this->object->is_installment_plan() ) {
			return;
		}
		$this->setup();
		return $this->trigger_send();
	}
public function trigger ( $ subscription_id , $ subscription = false ) { if ( $ subscription_id && ! $ subscription instanceof Subscription ) { $ subscription = wpcw_get_subscription ( $ subscription_id ) ; } if ( $ subscription instanceof Subscription ) { $ this -> object = $ subscription ; } if ( $ student_email = $ this -> object -> get_student_email ( ) ) { $ this -> recipient = $ student_email ; } if ( $ this -> object instanceof Subscription && ! $ this -> object -> is_installment_plan ( ) ) { return ; } $ this -> setup ( ) ; return $ this -> trigger_send ( ) ; }
Trigger Email Completed Subscription.
Trigger Email Completed Subscription .