LLMS_Elementor_Migrate::remove_template_hooks()
Removes core template action hooks from posts which have been migrated to elementor widgets.
Return Return
(void)
Source Source
File: includes/class-llms-elementor-migrate.php
public function remove_template_hooks() {
if ( ! function_exists( 'llms_is_elementor_post' ) ||
! llms_is_elementor_post() ||
( get_the_ID() && ! llms_parse_bool( get_post_meta( get_the_ID(), '_llms_elementor_migrated', true ) ) ) ) {
return;
}
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_meta_wrapper_start', 5 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_length', 10 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_difficulty', 20 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_course_tracks', 25 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_course_categories', 30 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_course_tags', 35 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_meta_wrapper_end', 50 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_course_progress', 60 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_single_syllabus', 90 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_course_author', 40 );
remove_action( 'lifterlms_single_course_after_summary', 'lifterlms_template_pricing_table', 60 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.7.0 | Introduced. |