Support » Plugin: Quick Page/Post Redirect Plugin » [Plugin: Quick Page/Post Redirect Plugin] Add redirect programatically?

Viewing 1 replies (of 1 total)
  • Don Fischer


    You can add data that way. It looks like you are trying to pass the post ID to the redirect URL, maybe? You have to pass a string to the URL.

    Try this,
    add_post_meta($ThisPageID, '_pprredirect_url', '', true);

    The other two allow for numeric data (active is bool value, type is numerical).

    Sorry about the code being ‘nasty’, but is is very clean and almost everything is commented… but there IS a lot going on – it has to hook into a lot of different functions for the regular redirects and the Quick Redirects are an entire different thing – as they are separate from the individual ones. Additionally, there are a lot of checks that have to happen to make it all work correctly and a lot of crazy code to make it happen.

    Let me know if you have further issues and I will see what I can do to help. Email me directly ( for the fastest response.

    Warm regards,
    Don Fischer

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Quick Page/Post Redirect Plugin] Add redirect programatically?’ is closed to new replies.