llms_get_enrollment_status_name( string $status )

Get the human readable (and translated) name of an enrollment status


Parameters Parameters

$status

(string) (Required) Enrollment status key.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/llms.functions.core.php

 */
function llms_get_enrollment_status_name( $status ) {

	$status   = strtolower( $status ); // Backwards compatibility.
	$statuses = llms_get_enrollment_statuses();
	if ( is_array( $statuses ) && isset( $statuses[ $status ] ) ) {
		$status = $statuses[ $status ];
	}
	/**
	 * Filter the enrollment status name
	 *
	 * @since Unknown
	 *
	 * @param array $enrollment_status The enrollment status name.
	 */
	return apply_filters( 'lifterlms_get_enrollment_status_name', $status );



Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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