芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/premium-addons-for-elementor/includes/module-base.php
reflection = new \ReflectionClass( $this ); if ( defined( 'ELEMENTOR_VERSION' ) ) { add_action( 'elementor/widgets/register', array( $this, 'init_widgets' ) ); } } /** * Init Widgets * * @since 0.0.1 */ public function init_widgets() { $widget_manager = \Elementor\Plugin::instance()->widgets_manager; foreach ( $this->get_widgets() as $widget ) { $class_name = $this->reflection->getNamespaceName() . '\Widgets\\' . $widget; if ( $this->is_widget() ) { if ( defined( 'ELEMENTOR_VERSION' ) ) { $widget_manager->register( new $class_name() ); } } } } /** * Get Widgets * * @since 0.0.1 * * @return array */ public function get_widgets() { return array(); } }