Warning: This method has been deprecated.

LLMS_Blocks_Course_Syllabus_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: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/blocks/class-llms-blocks-course-syllabus-block.php

	public function render_callback( $attributes = array(), $content = '' ) {
		llms_deprecated_function( __METHOD__, '2.5.0' );

		$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;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 This method has been deprecated.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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