Skip to content

Commit

Permalink
= 4.2.7.4 =
Browse files Browse the repository at this point in the history
~ Tweak order show item_lesson_material.
  • Loading branch information
tungnxt89 committed Nov 16, 2024
1 parent c4e0362 commit bd701e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/lp-template-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ function () {
);
add_action(
'learn-press/after-content-item-summary/lp_lesson',
LearnPress::instance()->template( 'course' )->func( 'item_lesson_complete_button' ),
LearnPress::instance()->template( 'course' )->func( 'item_lesson_material' ),
10
);
add_action(
'learn-press/after-content-item-summary/lp_lesson',
LearnPress::instance()->template( 'course' )->func( 'item_lesson_material' ),
12
LearnPress::instance()->template( 'course' )->func( 'item_lesson_complete_button' ),
11
);
add_action(
'learn-press/after-content-item-summary/lp_lesson',
Expand Down
1 change: 1 addition & 0 deletions inc/templates/class-lp-template-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ public function item_lesson_material() {
if ( ! $materials ) {
return;
}

echo wp_kses_post( do_shortcode( '[learn_press_course_materials]' ) );
} catch ( Throwable $e ) {
error_log( $e->getMessage() );
Expand Down

0 comments on commit bd701e8

Please sign in to comment.