I am developing a theme and that’s why need to remove these two hooks. How to remove them?
add_action(
'learn-press/before-courses-loop-item',
LP()->template( 'course' )->text( '<div class="course-wrap-thumbnail">', 'course-wrap-thumbnail-open' ),
1
);
add_action(
'learn-press/before-courses-loop-item',
LP()->template( 'course' )->callback( 'loop/course/badge-featured' ),
5
);
2
Answers
After struggling a certain period of time I have checked the LearnPress plugin's core files and found the solution in commented code.
Remove actions with the remove_action hook
remove_action( 'learn-press/before-courses-loop-item' , 'loop/course/badge-featured', 28);
Or…
remove_action( 'learn-press/before-courses-loop-item', LP()->template( 'course' )->callback( 'loop/course/badge-featured' ), 10 );