Skip to content
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 additional filters to Payload before pushing content through the API #116

Open
surrealwebs opened this issue May 23, 2024 · 0 comments

Comments

@surrealwebs
Copy link

Hello, we recently ran into an issue where the description was not reflecting the content we needed. Currently, there is no way to modify the contents of the description without modifying the post excerpt.

I have attached a patch file that adds 2 new filters that we find very useful.

  1. sailthru_payload_description is applied to $data['description'] -- Allows for the modification of the description as needed.
  2. sailthru_payload_data is applied to the entire payload $data array -- Allows for one final chance to modify the payload if needed. This was added instead of adding filters to every item in the $data array.

sailthru-extra-payload-filters.patch

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

No branches or pull requests

1 participant