| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/stirizo/wp-content/plugins/widgetkit-for-elementor/elements/pros-cons/ |
Upload File : |
<?php
use Elementor\Widgets\Elementor;
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
class Widgetkit_For_Elementor_Pros_Cons{
public function __construct() {
$this->widget_register();
}
private function widget_register() {
add_action( 'elementor/widgets/widgets_registered', [ $this, 'on_widgets_registered' ] );
}
public function on_widgets_registered() {
$this->include_files();
$this->init_config();
}
private function include_files() {
require_once WK_PATH . '/elements/pros-cons/template/config.php';
}
private function init_config() {
\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new WKFE_Feature_List_Config() );
}
}
new Widgetkit_For_Elementor_Pros_Cons();