# learnpress/4.1.7/templates/single-course/meta-primary.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7. 56 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7/code/templates/single-course/meta-primary.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7/raw/templates/single-course/meta-primary.php
- Modified: 2022-09-13T03:07:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.1.7/code/templates/single-course/meta-primary.php#L10-L20`.

```php
<?php
/**
 * Template for displaying primary course meta data such as: Instructor, Categories, Reviews (addons)...
 *
 * @author  ThimPress
 * @package LearnPress/Templates
 * @version 4.0.0
 */

defined( 'ABSPATH' ) or die;

$has_meta_left  = LP()->template()->has_content( 'learn-press/course-meta-primary-left' );
$has_meta_right = LP()->template()->has_content( 'learn-press/course-meta-primary-right' );

// Do not echo anything if there is no content hooked
if ( ! $has_meta_left && ! $has_meta_right ) {
	return;
}
?>

<div class="course-meta course-meta-primary<?php echo esc_attr( $has_meta_right && $has_meta_left ? ' two-columns' : '' ); ?>">

	<?php if ( $has_meta_left ) { ?>

		<div class="course-meta__pull-left">

			<?php
			/**
			 * LP Hook
			 */

			do_action( 'learn-press/course-meta-primary-left' );
			?>

		</div>

	<?php } ?>

	<?php if ( $has_meta_right ) { ?>

		<div class="course-meta__pull-right">

			<?php
			/**
			 * LP Hook
			 */

			do_action( 'learn-press/course-meta-primary-right' );
			?>

		</div>

	<?php } ?>

</div>

```
