/** * Hello_Kushimoto constructor. */ public function __construct() { load_plugin_textdomain('hello-kushimoto', false, plugin_basename(HELLO_KUSHIMOTO_DIR) . '/languages'); $this->option_manager = new Hello_Kushimoto_Option_Manager(); $this->speaker_seeker = new Hello_Kushimoto_Speaker_Seeker(); new Hello_Kushimoto_Admin_Panel($this->option_manager, $this->speaker_seeker); $speaker_class = $this->option_manager->get_speaker(); if (class_exists($speaker_class, true)) { $speaker = new $speaker_class(); $this->speaker = apply_filters('hello_kushimoto_speaker', $speaker); $this->initialize_modules(); } }