Viewing File: /home/rtsgrob/ww6/wp-content/themes/synergia/framework/modules/qodef-modules-loader.php

<?php

if ( ! function_exists( 'synergia_select_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 synergia_select_after_options_map action
	 *
	 * @see http://php.net/manual/en/function.glob.php
	 */
	function synergia_select_load_modules() {
		foreach ( glob( SELECT_FRAMEWORK_ROOT_DIR . '/modules/*/load.php' ) as $module_load ) {
			include_once $module_load;
		}
	}
	
	add_action( 'synergia_select_before_options_map', 'synergia_select_load_modules' );
}
Back to Directory File Manager