LLMS_Blocks_Abstract_Block::render_callback( array $attributes = array(), string $content = '' )
Renders the block type output for given attributes.
Parameters Parameters
- $attributes
-
(array) (Optional) Block attributes.
Default value: array()
- $content
-
(string) (Optional) Block content.
Default value: ''
Return Return
(string)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-abstract-block.php
public function render_callback( $attributes = array(), $content = '' ) { $this->add_hooks( $attributes, $content ); ob_start(); do_action( $this->get_render_hook(), $attributes, $content ); $ret = ob_get_clean(); $this->remove_hooks(); if ( ! $ret ) { $ret = $this->get_empty_render_message(); } return $ret; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |