Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Extending WP_REST_Posts_Controller #119

Open
pelletalexandre opened this issue Feb 20, 2016 · 3 comments
Open

Extending WP_REST_Posts_Controller #119

pelletalexandre opened this issue Feb 20, 2016 · 3 comments

Comments

@pelletalexandre
Copy link

Hello

Can someone give me a link to a tutorial which deal with extending WP_REST_Posts_Controller

I need more control on the data return to my mobile app and add some other functions. The standard class doesn't.

Thanks a lot

Regards
Alexandre

@danielbachhuber
Copy link
Member

I need more control on the data return to my mobile app and add some other functions.

Can you describe in greater detail how you'd like to extend it?

Also, just to confirm, you've already looked at register_rest_field() and found it insufficient for your needs?

@pelletalexandre
Copy link
Author

I'd like to fetch more than 100 post, means all
when i fetch all, i'd like to get few post meta but when i fetch one i'd like all post meta.

So i believe that extending WP_REST_Posts_Controller is the best way to do what i want.

Alexandre

@wujekbogdan
Copy link

+1

I'm trying to solve the same issue, I've posted more details here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants