at path:
ROOT
/
wp-content
/
plugins
/
mkdf-core
/
widgets
/
load.php
run:
R
W
Run
load.php
877 By
2023-02-17 15:01:30
R
W
Run
Delete
Rename
widget-class.php
5.7 KB
2023-02-17 15:01:30
R
W
Run
Delete
Rename
widget-loader.php
337 By
2023-02-17 15:01:30
R
W
Run
Delete
Rename
error_log
up
📄
load.php
Save
<?php if ( ! function_exists( 'kastell_core_load_widget_class' ) ) { /** * Loades widget class file. */ function kastell_core_load_widget_class() { include_once 'widget-class.php'; } add_action( 'kastell_mkdf_before_options_map', 'kastell_core_load_widget_class' ); } if ( ! function_exists( 'kastell_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 kastell_mikado_action_after_options_map action */ function kastell_core_load_widgets() { if ( mkdf_core_theme_installed() ) { foreach ( glob( MIKADO_FRAMEWORK_ROOT_DIR . '/modules/widgets/*/load.php' ) as $widget_load ) { include_once $widget_load; } } include_once 'widget-loader.php'; } add_action( 'kastell_mkdf_before_options_map', 'kastell_core_load_widgets' ); }