LLMS_Blocks_Lesson_Progression_Block::register_meta()
Register meta attributes.
Description Description
Called after registering the block type.
Return Return
(void)
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,
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |