What is this code add_to_serializer in all these plugins

Hello, I have the same issue (custom_fields are submitted in the js console, but are not getting saved to the db) I used the add_to_serializer(:basic_category, :default_tag, false ){object.custom_fields[“default_tag”]} way in my main plugin file.

Would you still reccomend this solution?