• Hello,

    I posted me question here (because I need to show a code example), please look into it.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter odedharel

    (@odedharel)

    For example, i’m trying to put these in my custom content-learning.php in my child theme:

    $user          = LP_Global::user();
    $course_item   = LP_Global::course_item();
    $course        = LP_Global::course();
    $can_view_item = $user->can_view_item( $course_item->get_id(), $course->get_id() );
    
    echo '<pre>';var_dump( $course_item );echo '</pre>';

    The function for $course_items returns null but when I switch to the default theme it works, what kind of “dependency” does it need?

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘LearnPress creating template for course content – different flow’ is closed to new replies.