LLMS_Blocks_Abstract_Block::__construct()

Constructor.


Source Source

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

	public function __construct() {

		if ( $this->is_dynamic ) {

			register_block_type(
				$this->get_block_id(),
				array(
					'attributes'      => $this->get_attributes(),
					'render_callback' => array( $this, 'render_callback' ),
				)
			);

		}

		$this->register_meta();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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