mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-20 06:53:23 +09:00
Move/update block registration
This commit is contained in:
@@ -47,6 +47,18 @@ class DisplayFeaturedImageGenesisWidgets {
|
||||
add_action( 'sixtenpress_shortcode_modal', array( $editor, 'do_modal' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register our featured image blocks.
|
||||
*/
|
||||
public function register_blocks() {
|
||||
if ( ! function_exists( 'register_block_type' ) ) {
|
||||
return;
|
||||
}
|
||||
require_once 'class-displayfeaturedimagegenesis-widgets-blocks.php';
|
||||
$block = new DisplayFeaturedImageGenesisWidgetsBlocks();
|
||||
$block->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue and localize widget scripts.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user