Title: Automating CSV imports
Last modified: December 6, 2022

---

# Automating CSV imports

 *  Resolved [Martin](https://wordpress.org/support/users/mniggemann/)
 * (@mniggemann)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/automating-csv-imports/)
 * Hi there,
    I was wondering if there was a way to automate redirection imports,
   perhaps with the help of a cron job? We’re using a list of continuous QR code
   URLs that need to be redirected to pass parameters to a form … and therefore 
   we’re looking for a way to update the redirections on a regular basis.
 * Any ideas?
    Cheers form Germany, -martin

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/automating-csv-imports/#post-16264734)
 * There are various ways of creating redirects, which are explained here:
 * [https://redirection.me/developer/](https://redirection.me/developer/)
 *  Thread Starter [Martin](https://wordpress.org/support/users/mniggemann/)
 * (@mniggemann)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/automating-csv-imports/#post-16264802)
 * John, thanx for the quick response!
    So there is no web hook for the import function?
   Otherwise, web hooks would be the solution I’m most familiar with.
 * BTW, love the breadth of functionality your plugin offers <3
 *  Thread Starter [Martin](https://wordpress.org/support/users/mniggemann/)
 * (@mniggemann)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/automating-csv-imports/#post-16271064)
 * John, we’re kind of getting closer to the bulk rediretion creation we want to
   perform, but one quick question with regard to the best way to go:
 * Is it correct, that I can’t create new redirects with the hook `redirection_create_redirect`,
   but I can only modify existing ones with `redirection_url_target` and then `str_replace`?
 * So I’d have to go via the Rest API (or PHP) to create new redirections?
 * Cheers!
    -martin
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/automating-csv-imports/#post-16277045)
 * The REST API is the best route to creating things. Hooks allow you to modify 
   existing actions, not perform new ones.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Automating CSV imports’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/automating-csv-imports/#post-16277045)
 * Status: resolved