Hi,
Thanks for your work with Public Post Preview.
I’m started to using it along with WP Statuses (https://github.com/imath/wp-statuses).
That changes things a bit since in the gutenberg-integration.js script when you use getEditedPostAttribute, WP Statuses returns private as status for all statuses, but adds a custom_status attribute that has the correct values.
|
status: getEditedPostAttribute( 'status' ), |
Do you think it is possible to somehow filter the attribute to use, or add some conditional so that the Public Post Preview works with WP Statuses?
Thanks
Hi,
Thanks for your work with Public Post Preview.
I’m started to using it along with WP Statuses (https://github.com/imath/wp-statuses).
That changes things a bit since in the
gutenberg-integration.jsscript when you usegetEditedPostAttribute, WP Statuses returns private as status for all statuses, but adds a custom_status attribute that has the correct values.public-post-preview/js/src/components/preview-toggle/index.js
Line 229 in 82720ce
Do you think it is possible to somehow filter the attribute to use, or add some conditional so that the Public Post Preview works with WP Statuses?
Thanks