# learnpress/4.4.10/assets/src/apps/js/blocks/courses/course-item-template/index.js

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.10. 32 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.10/code/assets/src/apps/js/blocks/courses/course-item-template/index.js
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.10/raw/assets/src/apps/js/blocks/courses/course-item-template/index.js
- Modified: 2026-10-09T07:39:42+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.10/code/assets/src/apps/js/blocks/courses/course-item-template/index.js#L10-L20`.

```javascript
/**
 * Register block single course property.
 */
import edit from './edit';
import save from './save';
import metadata from './block.json';
import { registerBlockType } from '@wordpress/blocks';

registerBlockType( 'learnpress/course-item-template', {
	...metadata,
	icon: {
		src: (
			<svg
				xmlns="http://www.w3.org/2000/svg"
				viewBox="0 0 24 24"
				width="24"
				height="24"
				aria-hidden="true"
				focusable="false"
			>
				<path
					fillRule="evenodd"
					d="M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z"
					clipRule="evenodd"
				></path>
			</svg>
		),
	},
	edit,
	save,
} );

```
