<?php

if ( ! function_exists( 'peggi_select_admin_map_init' ) ) {
	function peggi_select_admin_map_init() {
		do_action( 'peggi_select_action_before_options_map' );
		
		foreach ( glob( SELECT_FRAMEWORK_ROOT_DIR . '/admin/options/*/*.php' ) as $module_load ) {
			include_once $module_load;
		}
		
		do_action( 'peggi_select_action_options_map' );
		
		do_action( 'peggi_select_action_after_options_map' );
	}
	
	add_action( 'after_setup_theme', 'peggi_select_admin_map_init', 1 );
}