If I select a WooCommerce Bookings post type (wc_booking) to edit, I can only choose the default post statuses because they're hard-coded at /wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/views/templates/form-settings-meta-box.tpl.php
This should ideally be dependent on the post type (just like the post edit screen) but at the least it should be filterable.
Hi Clifford,
Thank you for contacting us and I'll be happy to assist.
The support for custom post statuses is not 100% implemented yet at WordPress level and you can read more on the topic at:
https://codex.wordpress.org/Function_Reference/register_post_status
https://core.trac.wordpress.org/ticket/12706
Meanwhile, you can use "cred_save_data" function ( ref: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data ), to programmatically update the status, when a form is submitted.
You'll find useful and relevant code examples in the following threads:
https://toolset.com/forums/topic/custom-post-status-not-selectable-in-cred-post-edit-form/#post-604886
https://toolset.com/forums/topic/change-post-status-draft-publish-of-product-on-the-frontend/
I hope this helps.
regards,
Waqar
Ah, I see that and https://developer.wordpress.org/reference/functions/get_post_statuses/ is not filterable.
Please make your selection options filterable.
Hi Clifford,
Thanks for writing back.
Our development team closely monitors WordPress changes and if a filter for default post statuses is introduced, we'll extend its usage in our plugins as well.
You're welcome to open a new ticket for different question or concern - we're here to help.
regards,
Waqar
I want CRED's statuses filterable so, when submitted, I can set to a custom post status without needing to hook into the form upon submission, as I'd have to hook into every single form instead of using a single hook to add my custom statuses.
Hi Clifford,
That's an interesting suggestion and can prove useful in a number of situations.
I would suggest submitting this idea here:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
We just changed how feature requests are gathered, and there you will be able to add this suggestion, so Product Management can consider it directly.
regards,
Waqar
I think I submitted it but the form's confirmation message says, "We try to respond to as many feature suggestions as we can." It is unclear if my submission was successfully received, but I'll assume it was.
Also, it's goofy/unclear to have to enter a "version". Is this the latest version of whichever plugin I select?
Hi Clifford,
Your understanding is correct and the "Version" field is there so that the latest version of the plugin in question can be specified.
This helps in knowing what was the most recent version, at the time of a certain feature request/suggestion was put forward.
I'll pass on your feedback internally to make the feature request form, more clear.
regards,
Waqar
OK, great, thanks. It would also be nice if I got the URL right away so I could bookmark it and share it with others I know are wanting it.
Hi Clifford,
Thanks for the suggestion and I'll pass this one internally as well.
We're currently in the process of making the feature request submission process, even more, efficient and streamlined and your feedback and suggestions would definitely help.
regards,
Waqar
OK, thank you. Please link me once it's posted, assuming they're still publicly-accessible and able to receive votes.