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)


Top ↑

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 );
	}



Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.