mirror of
https://ghproxy.net/https://github.com/lubusIN/blablablocks-slider-block.git
synced 2025-10-04 02:25:48 +08:00
update function name
This commit is contained in:
parent
43c851349b
commit
c161f0d8c7
1 changed files with 2 additions and 4 deletions
|
@ -22,12 +22,10 @@ if (! defined('ABSPATH')) {
|
|||
* Registers the block using the metadata loaded from the `block.json` file.
|
||||
* Behind the scenes, it registers also all assets so they can be enqueued
|
||||
* through the block editor in the corresponding context.
|
||||
*
|
||||
* @see https://developer.wordpress.org/reference/functions/register_block_type/
|
||||
*/
|
||||
function create_block_slider_block_block_init()
|
||||
function slider_block_init()
|
||||
{
|
||||
register_block_type(__DIR__ . '/build/slider');
|
||||
register_block_type(__DIR__ . '/build/slide');
|
||||
}
|
||||
add_action('init', 'create_block_slider_block_block_init');
|
||||
add_action('init', 'slider_block_init');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue