In a Wordpress plugin I am trying to copy bulk posts all at once. This takes a long time for complicated posts with lots of settings and content etc , is there a way to break up the process into groups similarly to how wordpress plugins and themes bulk update works. Like could I copy some post ids into a queue and process them, before proceeding with another queue. Or something like that?

  • 2
    doing this will require multiple requests, but you can skip the max execution time by using CLI instead of browser requests. AJAX or cron jobs will be useful to look into here. It's also very possible to run into the max execution time updating themes and plugins if you update a lot of them
    – Tom J Nowell
    Nov 7 at 20:42


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.