bp_learndash_page_display()
Get the course style view
Description
Return
(string)
Source
File: bp-integrations/learndash/bp-learndash-functions.php
function bp_learndash_page_display() { if ( empty( $_COOKIE['courseview'] ) || $_COOKIE['courseview'] == '' ) { if ( function_exists( 'bp_get_view' ) ): $view = bp_get_view(); else: $view = 'grid'; endif; } else { $view = $_COOKIE['courseview']; } return $view; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.