Save
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin Name: Elementor Addon
|
||||
* Description: Simple hello world widgets for Elementor.
|
||||
* Description: Custom Elementor widgets.
|
||||
* Version: 1.0.0
|
||||
* Author: Elementor Developer
|
||||
* Author URI: https://developers.elementor.com/
|
||||
@@ -19,14 +19,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
/**
|
||||
* Register widget files
|
||||
*/
|
||||
function register_hello_world_widget( $widgets_manager ) {
|
||||
require_once( __DIR__ . '/widgets/vertical-separator.php' );
|
||||
require_once( __DIR__ . '/widgets/number-box.php' );
|
||||
function register_elementor_addon_widgets( $widgets_manager ) {
|
||||
require_once( __DIR__ . '/widgets/info-box-popup.php' );
|
||||
|
||||
$widgets_manager->register( new \Elementor_Vertical_Separator() );
|
||||
$widgets_manager->register( new \Elementor_Number_Box() );
|
||||
$widgets_manager->register( new \Elementor_Info_Box_Popup() );
|
||||
}
|
||||
add_action( 'elementor/widgets/register', 'register_hello_world_widget' );
|
||||
add_action( 'elementor/widgets/register', 'register_elementor_addon_widgets' );
|
||||
|
||||
/**
|
||||
* Register scripts/styles only.
|
||||
|
||||
Reference in New Issue
Block a user