save_item(); } elseif ( ! empty( $notice ) && $notice === 'remove_item' ) { $this->remove_item(); } } public function save_item() { $text = __( 'Item saved.', 'floating-button' ); echo '
' . esc_html( $text ) . '
'; } public function remove_item() { $text = __( 'Item delete.', 'floating-button' ); echo '
' . esc_html( $text ) . '
'; } }