body_text = $modal_text; parent::__construct( $registry ); } /** * @param string $delete_button_text */ public function set_delete_button_text( $delete_button_text ) { $this->delete_button_text = $delete_button_text; } /** * @param string $keep_button_text */ public function set_keep_button_text( $keep_button_text ) { $this->keep_button_text = $keep_button_text; } /** * @param string $body_text */ public function set_body_text( $body_text ) { $this->body_text = $body_text; } /** * @param string $header_text */ public function set_header_text( $header_text ) { $this->header_text = $header_text; } /** * @return string */ private function render_id_if_present() { return isset( $this->id ) ? "id='{$this->id}'" : ''; } /** * @return string */ private function render_header_if_present() { return isset( $this->header_text ) ? '