Skip to content

.pages().slug('foo').update error - rest_no_route #301

Closed
@benfoxall

Description

@benfoxall

Hey @kadamwhite - this is the issue that I mentioned yesterday.

I expected to be able update the content of a page with this:

wp.pages().slug('my-page').update({content: 'new content'})

But it looked like .update wasn't a function. I ended up using a pretty ugly work around - though I'd love to know how to remove it.

There's a good chance I'm doing this wrong!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions