I am new to WordPress and plugins, I received an exercise to do.
I did the first part: I implemented the following in my custom plugin:
- I register a custom post type ‘x’ that has title and editor.
- I created a rest api endpoint to get all posts of type ‘x’.
Now in the excercise they ask me to handle the translation of the text fields in Italian and English (I think we are assuming the text is always written in Italian), but I don’t even know where to start.