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

Extending WP_REST_Posts_Controller #119

Description

@pelletalexandre

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

Activity

  1. danielbachhuber commented on Feb 20, 2016

    @danielbachhuber
    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?

  2. pelletalexandre commented on Feb 20, 2016

    @pelletalexandre
    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

  3. wujekbogdan commented on Mar 7, 2016

    @wujekbogdan

    +1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions