-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filter to opt-out of auto serializing of some data #35
Comments
Great idea! Assigning to myself. |
Pushed in b1ce02d and adding to the Vuepress dev backend next! |
Pushed in Vuepress! Apply these changes and upgrade to the latest version of Rest-Easy to get a checkbox to deactivate automatic attachment serialization. There's also a new utility function called |
@SaFrMo can you give me an example of how we are supposed to use Like this?
|
OK I looked into how This isn't going to solve my issue, because I'd need to set it on all pages on the site, and then on all pages going forward due to the way the client is using the site. It would be way more helpful if I could turn off auto-attachment serializing for the entire site, always. Not turning it off per post. I'd rather opt-in to auto serializing than opt-out. Now that we are using ACF for post galleys, I wonder if turning off auto-serializing of attachments by default, and having a rest easy filter commented out is a better way to go? |
On a new website I'm building, the client has attached 300+ images too many pages. These all get auto-serialized on each page (so when viewing a grid page, it is insanely slow).
We should have a filter that we can use to opt-out of things in the serializer. Perhaps like the way WordPress does it for opting out of the rich editor?
The text was updated successfully, but these errors were encountered: