LLMS_Access_Plan::get_enroll_text()
Retrieve the text displayed on “Buy” buttons Uses optional user submitted text and falls back to LifterLMS defaults if none is supplied
Return Return
(string)
Source Source
File: includes/models/model.llms.access.plan.php
// User custom text option.
$text = $this->get( 'enroll_text' );
if ( ! $text ) {
switch ( $this->get_product_type() ) {
case 'course':
$text = apply_filters( 'llms_course_enroll_button_text', __( 'Enroll', 'lifterlms' ), $this );
break;
case 'membership':
$text = apply_filters( 'llms_membership_enroll_button_text', __( 'Join', 'lifterlms' ), $this );
break;
}
}
return apply_filters( 'llms_plan_get_enroll_text', $text, $this );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |