mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Initial (non-working) add
Some kind of REST 404 error but no idea how to resolve.
This commit is contained in:
@@ -125,6 +125,7 @@ class Display_Featured_Image_Genesis {
|
||||
add_action( 'widgets_init', array( $this->widgets, 'register_widgets' ) );
|
||||
add_action( 'widgets_init', array( $this->widgets, 'register_shortcodes' ) );
|
||||
add_action( 'admin_enqueue_scripts', array( $this->widgets, 'enqueue_scripts' ) );
|
||||
add_action( 'init', array( $this, 'maybe_register_block' ) );
|
||||
|
||||
// Taxonomies, Authors
|
||||
add_filter( 'displayfeaturedimagegenesis_get_taxonomies', array( $this->taxonomies, 'remove_post_status_terms' ) );
|
||||
@@ -249,6 +250,15 @@ class Display_Featured_Image_Genesis {
|
||||
}
|
||||
}
|
||||
|
||||
public function maybe_register_block() {
|
||||
if ( ! function_exists( 'register_block_type' ) ) {
|
||||
return;
|
||||
}
|
||||
include_once 'blocks/class-displayfeaturedimagegenesis-blocks.php';
|
||||
$blocks = new DisplayFeaturedImageGenesisBlocks();
|
||||
$blocks->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add link to plugin settings page in plugin table
|
||||
* @param $links array link to settings page
|
||||
|
||||
Reference in New Issue
Block a user