diff --git a/inc/class-table.php b/inc/class-table.php index 564ec72..a345ebe 100644 --- a/inc/class-table.php +++ b/inc/class-table.php @@ -313,6 +313,9 @@ protected function format_value_for_output( $value ): string { HTML; + // Don't show the copy button for empty values. + $copy_button = ! empty( $value ) ? $copy_button : ''; + $expand_button = ''; if ( is_string( $value ) && ! is_numeric( $value ) ) {