• Hi,

    I have an LMS site, and this site allows the users to create a course and send it for review. After that, the admin receives it, and he can publish it.
    The user has a role as ( Tutor Instructor ), and the site has a front-end page to create posts. The type of the post is a course ( post_type=course ).

    I want to redirect the user who creates the course to another page instead of keeping him inside the page after submitting the course for review.

    How can I do that?

    Thanks.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    IMO it’s better to not involve WP in redirects if at all possible. It’s much more efficient to use .htaccess redirects. We then avoid loading all of WP simply to make a redirect only to load WP all over again.

    The RewriteCond/RewriteRule set could look for post.php requests that contain &message=8 query string. (Post submitted message) On a match, redirect as desired.

    The drawback of this method is it’s agnostic on post type. Any post type submitted for review will get redirected. This is often not an issue, but it could be.

Viewing 1 replies (of 1 total)

The topic ‘Redirect User After creating a post’ is closed to new replies.