EDD::new_enrol_status( $status, $course, $payment_id, $expired_at )
Set new enrolment status from EDD
Parameters
- $status
-
(Required)
- $course
-
(Required)
- $order_id
-
(Required)
- $expired_at
-
(Required)
Return
(string)
Source
File: classes/EDD.php
public function new_enrol_status( $status, $course, $payment_id, $expired_at ) { $payment = new \EDD_Payment( $payment_id ); if ( $payment ) { $status = $payment->status; if ( $payment->status === 'publish' ) { $status = 'active'; } } return $status; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |