The purpose of this exercise is for us to get a sense of how you would approach designing and implementing a simple WordPress integration before we get you in for an interview. We’re avoiding tricky algorithmic tests in favor of something that shows how you approach problems and organise a codebase.
There is no time limit for this test, but we expect most applicants to complete the requirements in roughly 3-4 hours.
Feel free to use any PHP framework you like, but note that submissions utilising WordPress will be looked on favourably.
If you make any assumptions about requirements, or use any online resources to solve a problem, please make note of these in your code comments.
Your solution will be evaluated internally by your potential co-workers. You should expect a response from us within two business days.
As a WordPress system
I want to get all categories from an external API
So that a single system handles taxonomy and their relationships
The following tasks are not required, but nice to have:
You can create a fake REST API with JSON Server.
Example db.json:
{
"categories": [
{
"id": 1000,
"name": "State",
"parent_id": null
},
{
"id": 1001,
"name": "NSW",
"parent_id": 1000
},
{
"id": 1002,
"name": "VIC",
"parent_id": 1000
},
{
"id": 1003,
"name": "QLD",
"parent_id": 1000
},
{
"id": 1004,
"name": "WA",
"parent_id": 1000
},
{
"id": 1005,
"name": "ACT",
"parent_id": 1000
},
{
"id": 1006,
"name": "National",
"parent_id": null
},
{
"id": 1007,
"name": "World",
"parent_id": null
}
]
}
All acceptance criteria should be met (to best of ability and time available). A link to your repo should be sent to: amp HYPHEN tech HYPHEN test HYPHEN submissions HYPHEN group AT fairfaxmedia DOT com DOT au