LLMS_Twenty_Twenty::get_archive_page_id()
Retrieve the page ID of a a catalog page.
Return Return
(int|false)
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;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.37.0 | Introduced. |