We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b734a14 commit 21c3834Copy full SHA for 21c3834
src/class-hello-kushimoto.php
@@ -23,15 +23,14 @@ public function __construct() {
23
new Hello_Kushimoto_Admin_Panel( $this->option_manager );
24
25
$speaker_class = $this->option_manager->get_speaker();
26
+
27
if( class_exists( $speaker_class, true ) ) {
28
$speaker = new $speaker_class;
29
+ $this->speaker = apply_filters( 'hello_kushimoto_speaker', $speaker );
30
+ $this->initialize_modules();
31
}
- else {
- $speaker = new Miyasan();
- }
32
33
- $this->speaker = apply_filters( 'hello_kushimoto_speaker', $speaker );
34
- $this->initialize_modules();
35
36
37
0 commit comments