is_memberships()
Determine if the membership catalog (post type archive) is being displayed.
Return Return
(boolean)
Source Source
File: includes/functions/llms-functions-conditional-tags.php
function is_memberships() { return ( is_post_type_archive( 'llms_membership' ) || ( is_singular() && is_page( llms_get_page_id( 'memberships' ) ) ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.0 | Introduced. |