• Resolved mniggemann

    (@mniggemann)


    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

    (@johnny5)

    There are various ways of creating redirects, which are explained here:

    https://redirection.me/developer/

    Thread Starter mniggemann

    (@mniggemann)

    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 mniggemann

    (@mniggemann)

    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

    (@johnny5)

    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.