Created
October 16, 2020 13:03
Revisions
-
dacmail revised this gist
Oct 16, 2020 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,3 @@ function sensei_template_loader(String $template) add_filter('template_include', __NAMESPACE__ . '\\sensei_template_loader', 100, 1); add_filter('comments_template', __NAMESPACE__ . '\\sensei_template_loader', 100, 1); } -
dacmail created this gist
Oct 16, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ <?php namespace App; if (defined('ABSPATH')) { add_action('after_setup_theme', function () { add_theme_support('sensei'); }); /** * @param string $template * @return string */ function sensei_template_loader(String $template) { return strpos($template, Sensei()->plugin_path()) === -1 ? $template : (locate_template(str_replace(Sensei()->plugin_path() . '/templates/', Sensei()->template_url, $template)) ?: $template); } add_filter('template_include', __NAMESPACE__ . '\\sensei_template_loader', 100, 1); add_filter('comments_template', __NAMESPACE__ . '\\sensei_template_loader', 100, 1); } add_action('init', function () { remove_action('sensei_single_course_content_inside_before', array('Sensei_Course', 'the_course_video'), 40); }, 11);