implement Gutenberg block to add liveticker without legacy shortcode
* implement react-based JS block * refactor shortcode and widget to use the same syntax and classes
This commit is contained in:
@ -55,6 +55,9 @@ add_shortcode( 'liveticker', array( 'SCLiveticker', 'shortcode_ticker_show' ) );
|
||||
// Add Widget.
|
||||
add_action( 'widgets_init', array( 'SCLiveticker_Widget', 'register' ) );
|
||||
|
||||
// Add Gutenberg block.
|
||||
add_action( 'enqueue_block_editor_assets', array( 'SCLiveticker_Admin', 'register_block' ) );
|
||||
|
||||
// Autoload.
|
||||
spl_autoload_register( 'scliveticker_autoload' );
|
||||
|
||||
|
Reference in New Issue
Block a user