• Resolved sundanlotion

    (@sundanlotion)


    I’ve been able to successfully create a single custom trigger – I’m wondering what the best way is to go about creating many custom triggers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    You have to register them one by one, unfortunately. If you have a set of similar triggers which can share some code you can create a parent class like we do for the core triggers. I’d also suggest using namespaces and put the classes into separate files and directories.

    Thread Starter sundanlotion

    (@sundanlotion)

    Thanks for the prompt response, I really appreciate it! And thanks for the info as well. I assumed that was the only way to do it, but figured I’d reach out just to make sure I wasn’t missing anything. This is a great plugin, by the way.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Thank you very much! If you could leave a review it would be awesome!

    Btw if you are using the plugin for the custom development you probably will be interested in the new feature – import/export with JSON, just like ACF does it. We’ll also have the new fields resolver API.

    • This reply was modified 5 years, 11 months ago by Kuba Mikita.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Custom Triggers’ is closed to new replies.