HEX
Server: Apache
System: Linux speed2host.es 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cuisinelectro.com_7628cp5v3wv (10000)
PHP: 8.2.31
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/cuisinelectro.com/httpdocs/wp-content/plugins/bridge-core/modules/widgets/load.php
<?php

if ( ! function_exists( 'bridge_core_load_widget_class' ) ) {
	/**
	 * Loades widget class file.
	 */
	function bridge_core_load_widget_class() {
		include_once 'widget-class.php';
	}
	
	add_action( 'bridge_qode_action_before_options_map', 'bridge_core_load_widget_class' );
}

if ( ! function_exists( 'bridge_core_load_widgets' ) ) {
	/**
	 * Loades all widgets by going through all folders that are placed directly in widgets folder
	 * and loads load.php file in each. Hooks to qodef_themename_action_after_options_map action
	 */
	function bridge_core_load_widgets() {
		
		if ( bridge_core_is_installed('theme') ) {
			foreach ( glob( QODE_FRAMEWORK_ROOT_DIR . '/modules/widgets/*/load.php' ) as $widget_load ) {
				include_once $widget_load;
			}
		}
		
		include_once 'widget-loader.php';
	}
	
	add_action( 'bridge_qode_action_before_options_map', 'bridge_core_load_widgets' );
}