Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-content/plugins/ova-destination/elementor/class-ova-register-elementor.php
Назад
<?php namespace ova_destination_elementor; use ova_destination_elementor\widgets\ova_destination; use ova_destination_elementor\widgets\ova_destination_slider; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly /** * Main Plugin Class * * Register new elementor widget. * * @since 1.0.0 */ class Ova_Destination_Register_Elementor { /** * Constructor * * @since 1.0.0 * * @access public */ public function __construct() { $this->add_actions(); } /** * Add Actions * * @since 1.0.0 * * @access private */ private function add_actions() { // Register Ovatheme Category in Pane add_action( 'elementor/elements/categories_registered', array( $this, 'add_ovatheme_category' ) ); add_action( 'elementor/widgets/register', [ $this, 'on_widgets_registered' ] ); } public function add_ovatheme_category( ) { \Elementor\Plugin::instance()->elements_manager->add_category( 'destination', [ 'title' => __( 'Destination', 'ova-destination' ), 'icon' => 'fa fa-plug', ] ); } /** * On Widgets Registered * * @since 1.0.0 * * @access public */ public function on_widgets_registered() { $this->includes(); $this->register_widget(); } /** * Includes * * @since 1.0.0 * * @access private */ private function includes() { require OVADESTINATION_PLUGIN_PATH . 'elementor/widgets/ova_destination.php'; require OVADESTINATION_PLUGIN_PATH . 'elementor/widgets/ova_destination_slider.php'; } /** * Register Widget * * @since 1.0.0 * * @access private */ private function register_widget() { \Elementor\Plugin::instance()->widgets_manager->register( new ova_destination() ); \Elementor\Plugin::instance()->widgets_manager->register( new ova_destination_slider() ); } } new Ova_Destination_Register_Elementor();
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка