bp_learndash_page_display()

Get the course style view

Description

Return

(string)

Source

File: bp-integrations/learndash/bp-learndash-functions.php

365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
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

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.