skip to Main Content

How to remove a hook in LearnPress v4.x for WordPress?

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 );

VIEW QUESTION

Run query inside WP hook? – WordPress

I want to use the hook from below. The hook will run when a draft is published function mepr_clear_cached_ids($post) { $post_type = get_post_type($post); if($post_type && $post_type == 'memberpressproduct') { // Run query here. } } add_action('draft_to_publish', 'mepr_clear_cached_ids'); inside the hook…

VIEW QUESTION
Back To Top
Search