# learnpress/4.4.8/inc/admin/views/meta-boxes/course/assigned.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 33 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/inc/admin/views/meta-boxes/course/assigned.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/inc/admin/views/meta-boxes/course/assigned.php
- Modified: 2026-09-18T11:22:50+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.4.8/code/inc/admin/views/meta-boxes/course/assigned.php#L10-L20`.

```php
<?php
/**
 * Admin View: Lesson, Quiz assigned Meta box
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit();

global $post;
$courses = learn_press_get_item_courses( $post->ID );
?>

<div class="lp-item-assigned">
	<?php if ( $courses ) : ?>
		<ul>
			<?php foreach ( $courses as $course ) : ?>
				<li>
					<strong><a href="<?php echo get_edit_post_link( $course->ID ); ?>" target="_blank"><?php echo get_the_title( $course->ID ); ?></a></strong>

					&#8212;
					<a href="<?php echo learn_press_get_course_permalink( $course->ID ); ?>" target="_blank"><?php esc_html_e( 'View', 'learnpress' ); ?></a>
				</li>
			<?php endforeach; ?>
		</ul>
		<?php
	else :
		esc_html_e( 'Not assigned yet', 'learnpress' );
	endif;
	?>
</div>

```
