I need to add pagination through wordpress REST API. I am able to fetch all the data but need to add pagination. Here is my code:
add_action(\'rest_api_init\'