LLMS_Meta_Box_Lesson::get_drip_course_settings_info_html( LLMS_Course $course )

Helpful messaging depending on whether the course for this lesson has drip settings enabled or not.


Parameters Parameters

$course

(LLMS_Course) (Required) Course object.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/class.llms.meta.box.lesson.php

	public function get_drip_course_settings_info_html( $course ) {
		if ( ! $course ) {
			return '';
		}

		$output = 'yes' === $course->get( 'lesson_drip' ) && $course->get( 'drip_method' ) ?
			esc_html__( 'Drip settings are currently set at the course level, under the Restrictions settings tab. If you would like to set individual drip settings for each lesson, you must disable the course level drip settings first.', 'lifterlms' )
		:
			esc_html__( 'Drip settings can be set at the course level to release course content at a specified interval, in the Restrictions settings tab.', 'lifterlms' );

		$output .= ' <a href="' . esc_url( admin_url( 'post.php?post=' . $course->get( 'id' ) . '&action=edit#lifterlms-course-options' ) ) . '">' . esc_html__( 'Edit Course', 'lifterlms' ) . '</a>';

		return $output;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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