is_courses()

Determine if the course catalog (post type archive) is being displayed.


Description Description


Return Return

(boolean)


Top ↑

Source Source

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

	function is_courses() {
		return ( ( is_post_type_archive( 'course' ) ) || ( is_singular() && is_page( llms_get_page_id( 'courses' ) ) ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.0 Remove ternary.
3.0.0 Unknown.
1.4.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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