Could you please provide us some additional information on what action you are trying to call? Or what you are trying to accomplish?
The plugin does use hooks for various actions, but it’s unclear what hook would be required or if it’s supported based upon the unclear request to use print from PHP. Give us some additional information and we’d be happy to confirm if it’s supported.
We don’t print orders automatically because some orders has a specific ship date. We want to integrate a function in our custom plugin to select the orders that must be printed. And we don’t want to go order by order to print them. So how can we print from PHP code?
Never mind I just studied your code and found that I can do it like this
Zprint\Printer::reprintOrder('123456', array_map('intval', [1]));
Great to hear you found a solution by reviewing our code. We were going to recommend this as an option to explore deeper, but sounds like you already figured it out. Once you complete development on the plugin, we’d love for you to reach out to us directly on our website, maybe we can collaborate on providing an outlet for this plugin to other users. Best of luck on the continued development.