WordPress.org

Forums

Groups 404 Redirect
Reirects (4 posts)

  1. Cordiner
    Member
    Posted 2 years ago #

    Hi itthinx

    What would be really good would be to be able to redirect specific requests to specific pages or posts.
    e.g. I am setting up a membership site using woocommerce and woogroups with several membership levels and if a potential customer clicks on a link to a restricted page I would like to be able to redirect them to the relevant subscription product.

    Will this be possible ?

  2. itthinx
    Member
    Plugin Author

    Posted 2 years ago #

    That seems like a great idea. The basics are already there with the plugin here but to achieve what you are describing, it lacks a way to map between restricted pages and redirect targets for these.

  3. Cordiner
    Member
    Posted 2 years ago #

    Any chance you can develop it ?
    What would the time scale be ?
    I'm just starting to learn PHP, so would think it will be a while before I can manage to customize it by hard coding.

  4. itthinx
    Member
    Plugin Author

    Posted 2 years ago #

    I've added a filter which you can use: groups_404_redirect_post_id

    It takes the $post_id as its first parameter and expects the desired one returned, the second parameter is the current post's ID and the third one the current URL.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Groups 404 Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags