| @@ -8,10 +8,10 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | defined( 'ABSPATH' ) or die; |
| 11 | 11 | |
| 12 | -$has_meta_left = LP()->template()->has_content( 'learn-press/course-meta-primary-left' ); | |
| 13 | -$has_meta_right = LP()->template()->has_content( 'learn-press/course-meta-primary-right' ); | |
| 12 | +$has_meta_left = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-primary-left' ); | |
| 13 | +$has_meta_right = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-primary-right' ); | |
| 14 | 14 | |
| 15 | 15 | // Do not echo anything if there is no content hooked |
| 16 | 16 | if ( ! $has_meta_left && ! $has_meta_right ) { |
| 17 | 17 | return; |