$id ) { $newValue[$key] = apply_filters( 'wpml_object_id', $id, 'attachment', true ); } } else { // Single images arrive as simple values $newValue = apply_filters( 'wpml_object_id', $value, 'attachment', true ); } return $newValue; } }