Closed gonzomir closed 3 years ago
The 0.4.0 release should be available shortly. What version of Altis are you using this with?
I'm using it with Altis 7. I was thinking, I can add 0.4.0 as a dependency and it'll overwrite the one included with Altis, right?
Not quite, you’ll need to alias it eg “0.4.0 as 0.3.17” for the version constraint
Yes, that worked, closing this issue, thanks!
When trying to extend Workflows with events on custom post types I constantly get beaten by the fact that stored workflows load too early. Although I can register events later and the UI is fully functional, when the plugin loads the stored workflow, it is discarder because the event is not yet registered. Registering the event earlier doesn't work for me because the custom post type(s) can't be registered that early. One could try to add the post types as UI field that pulls data from REST API, but then
get_rest_url
can't be used becauseWP_Rewrite
is not yet initialized.My suggestion is to trigger
hm.workflows.init
in theinit
action, I didn't see any side effects and it makes creating custom workflows much easier.