Home Forums Plugin Support WP User Frontend Pro wpuf_add_post_redirect & post_id

This topic is: resolved

This topic contains 1 reply, has 1 voice, and was last updated by  bazelski 5 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9241

    bazelski
    Participant
    Post count: 28

    This should work bit its not. When post_id is not in the function like this wpuf_redirect_to_register( $response) its redirecting otherwise its stucked on submit.

    function wpuf_redirect_to_register( $response, $post_id) {
    
      	$response['redirect_to'] = home_url() . '/reg?id=/'.$post_id;;
     
        return $response;
    
    }
    add_filter( 'wpuf_add_post_redirect', 'wpuf_redirect_to_register' );
    #9245

    bazelski
    Participant
    Post count: 28

    it was the filter priority and number of accepted args.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘wpuf_add_post_redirect & post_id’ is closed to new replies.