OwlCyberSecurity - MANAGER
Edit File: index.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if (! class_exists ( 'NeytriPlusElementor' )) { /** * * @author iamdesigning11 * */ class NeytriPlusElementor { private static $_instance = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { add_action( 'plugins_loaded', array( $this, 'register_init' ) ); add_action( 'elementor/widgets/register', array( $this, 'register_widgets' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_assets' ) ); } function register_init() { if(!did_action( 'elementor/loaded' )) { return; } add_action( 'elementor/elements/categories_registered', array( $this, 'register_category' ) ); } function register_category( $elements_manager ) { $elements_manager->add_category( 'neytri-widgets', array( 'title' => esc_html__( 'Neytri', 'neytri-plus' ), 'icon' => 'font' ) ); } function register_widgets( $widgets_manager ) { require NEYTRI_PLUS_DIR_PATH . 'elementor/class-common-widget-base.php'; } function enqueue_assets() { wp_enqueue_style( 'neytri-plus-elementor', NEYTRI_PLUS_DIR_URL . 'elementor/assets/css/elementor.css', false, NEYTRI_PLUS_VERSION, 'all'); } } } NeytriPlusElementor::instance();