admin_view( $data ) || $Helper->is_hidden( $data ) ) { return ''; } $label = $Helper->get_data( $data, 'label' ); $name = 'social_media_link'; $meta_key = 'adqs_social_media_link'; if ( in_array( $name, $skip_fields ) ) { return; } $value = $Helper->meta_val( $post_id, $meta_key ); // Parse the JSON value to get social media links $social_links = []; if ( ! empty( $value ) && is_string( $value ) ) { $decoded = json_decode( $value, true ); if ( is_array( $decoded ) ) { $social_links = $decoded; } } // Only display if we have valid social media links if ( ! empty( $social_links ) && is_array( $social_links ) ) : ?>