You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
620 B
PHP
36 lines
620 B
PHP
<?php
|
|
|
|
namespace RT\ThePostGrid\Controllers\Blocks;
|
|
|
|
class RttpgRow {
|
|
|
|
private $block_type;
|
|
|
|
public function __construct() {
|
|
add_action( 'init', [ $this, 'register_blocks' ] );
|
|
$this->block_type = 'rttpg/row';
|
|
}
|
|
|
|
/**
|
|
* Register Block
|
|
* @return void
|
|
*/
|
|
public function register_blocks() {
|
|
if ( ! function_exists( 'register_block_type' ) ) {
|
|
return;
|
|
}
|
|
register_block_type(
|
|
$this->block_type,
|
|
[
|
|
// 'attributes' => $this->get_attributes(),
|
|
'render_callback' => [ $this, 'render_block' ],
|
|
]
|
|
);
|
|
}
|
|
|
|
public function render_block( $settings, $content ) {
|
|
|
|
return $content;
|
|
}
|
|
}
|