Warning: This method has been deprecated.
LLMS_Blocks_Course_Syllabus_Block::get_attributes()
Retrieve custom block attributes.
Description Description
Necessary to override when creating ServerSideRender blocks.
Return Return
(array)
Source Source
File: libraries/lifterlms-blocks/includes/blocks/class-llms-blocks-course-syllabus-block.php
public function get_attributes() {
llms_deprecated_function( __METHOD__, '2.5.0' );
return array_merge(
parent::get_attributes(),
array(
'course_id' => array(
'type' => 'int',
'default' => 0,
),
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 2.5.0 | This method has been deprecated. |
| 1.0.0 | Introduced. |