update function name

This commit is contained in:
punitverma123 2024-12-24 08:12:24 +05:30
parent 43c851349b
commit c161f0d8c7

View file

@ -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');