is_lifterlms()

Determine if a LifterLMS post type or post type archive is being displayed.


Return Return

(boolean)


Top ↑

Source Source

File: includes/functions/llms-functions-conditional-tags.php

	function is_lifterlms() {

		/**
		 * Modify the return of the is_lifterlms() conditional function.
		 *
		 * @since Unknown
		 * @since 3.37.0 Add check for `is_membership_taxonomy()`.
		 *
		 * @param boolean $is_lifterlms Default value.
		 */
		return apply_filters( 'is_lifterlms', ( is_course() || is_courses() || is_course_taxonomy() || is_lesson() || is_quiz() || is_membership() || is_memberships() || is_membership_taxonomy() ) );

	}


Top ↑

User Contributed Notes User Contributed Notes

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