first commit

This commit is contained in:
2023-11-23 22:14:40 +01:00
commit 6c5e83d1b2
2779 changed files with 640726 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
if ( ! function_exists( 'calla_elated_load_modules' ) ) {
/**
* Loades all modules by going through all folders that are placed directly in modules folder
* and loads load.php file in each. Hooks to calla_elated_after_options_map action
*
* @see http://php.net/manual/en/function.glob.php
*/
function calla_elated_load_modules() {
foreach ( glob( ELATED_FRAMEWORK_ROOT_DIR . '/modules/*/load.php' ) as $module_load ) {
include_once $module_load;
}
}
add_action( 'calla_elated_before_options_map', 'calla_elated_load_modules' );
}