} } } } private function register_assets(): void { $assets = $this->get_assets(); foreach ( $assets as $assets_type => $assets_type_data ) { foreach ( $assets_type_data as $asset_name => $asset_data ) { if ( 'scripts' === $assets_type ) { wp_register_script( $asset_name, $asset_data['src'], $asset_data['dependencies'], $asset_data['version'], true ); } else { wp_register_style( $asset_name, $asset_data['src'], $asset_data['dependencies'], $asset_data['version'] ); } } } } public function __construct() { parent::__construct(); $this->register_assets(); } }
Fatal error: Uncaught Error: Class "Elementor\Core\Page_Assets\Loader" not found in /htdocs/wp-content/plugins/elementor/includes/plugin.php:711 Stack trace: #0 /htdocs/wp-content/plugins/elementor/includes/plugin.php(622): Elementor\Plugin->init_components() #1 /htdocs/wp-includes/class-wp-hook.php(341): Elementor\Plugin->init('') #2 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #3 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #4 /htdocs/wp-settings.php(771): do_action('init') #5 /htdocs/wp-config.php(90): require_once('/htdocs/wp-sett...') #6 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #7 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #8 /htdocs/index.php(17): require('/htdocs/wp-blog...') #9 {main} thrown in /htdocs/wp-content/plugins/elementor/includes/plugin.php on line 711