LLMS_Blocks_Course_Information_Block::register_meta()
Register meta attributes stub.
Description Description
Called after registering the block type.
Return Return
(void)
Source Source
File: libraries/lifterlms-blocks/includes/blocks/class-llms-blocks-course-information-block.php
public function register_meta() {
register_meta(
'post',
'_llms_length',
array(
'object_subtype' => 'course',
'sanitize_callback' => 'sanitize_text_field',
'auth_callback' => array( $this, 'meta_auth_callback' ),
'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. |