This topic contains 1 reply and 1 voices, and was last updated by bazelski 6 years ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
October 21, 2013 at 12:54 pm 9241
bazelski 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' );
October 21, 2013 at 3:04 pm 9245
bazelski bazelski

it was the filter priority and number of accepted args.

Viewing 1 Posts - 1 through 1 (of 1 total)