<?php

if ( ! function_exists( 'theaisle_elated_admin_map_init' ) ) {
	function theaisle_elated_admin_map_init() {
		do_action( 'theaisle_elated_action_before_options_map' );
		
		foreach ( glob( ELATED_FRAMEWORK_ROOT_DIR . '/admin/options/*/*.php' ) as $module_load ) {
			include_once $module_load;
		}
		
		do_action( 'theaisle_elated_action_options_map' );
		
		do_action( 'theaisle_elated_action_after_options_map' );
	}
	
	add_action( 'after_setup_theme', 'theaisle_elated_admin_map_init', 1 );
}