LLMS_Blocks_Lesson_Progression_Block::register_meta()

Register meta attributes.


Description Description

Called after registering the block type.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/blocks/class-llms-blocks-lesson-progression-block.php

	public function register_meta() {

		register_meta(
			'post',
			'_llms_quiz',
			array(
				'object_subtype'    => 'lesson',
				'sanitize_callback' => 'absint',
				'auth_callback'     => '__return_true',
				'type'              => 'string',
				'single'            => true,
				'show_in_rest'      => true,
			)
		);

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.