/** * @return string */ protected function get_widget_title() { $name = $this->speaker->whoami(); return esc_html(sprintf(__('%s says...'), $name)); }
/** * show text in admin. */ public function render() { $chosen = $this->speaker->talk_message(); $name = $this->speaker->whoami(); echo "<p class='hello-kushimoto speaker-{$name}'>{$chosen}</p>"; }
/** * @param Hello_Kushimoto_Speaker $option * * @return string */ private function get_speaker_name(Hello_Kushimoto_Speaker $option) { return $option->whoami(); }