LLMS_Twenty_Twenty::get_archive_page_id()

Retrieve the page ID of a a catalog page.


Return Return

(int|false)


Top ↑

Source Source

File: includes/theme-support/class-llms-twenty-twenty.php

	protected static function get_archive_page_id() {

		$page_id = false;

		if ( is_courses() ) {
			$page_id = llms_get_page_id( 'courses' );
		} elseif ( is_memberships() ) {
			$page_id = llms_get_page_id( 'memberships' );
		}

		return $page_id;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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