Viewing 1 replies (of 1 total)
  • Hello,
    To make a redirection after the users post, go to wpuf-add-post.php and at the bottom you have `//plugin API to extend the functionality
    do_action( ‘wpuf_add_post_after_insert’, $post_id );

    echo ‘<div class=”success”>’ . __(‘Post published successfully’, ‘wpuf’) . ‘</div>’;
    if ( $post_id ) {
    $redirect = apply_filters( ‘wpuf_after_post_redirect’, get_permalink( $post_id ), $post_id );

    wp_redirect( $redirect );
    exit;
    }`
    Just comment the `echo ‘<div class=”success”>’ . __(‘Post published successfully’, ‘wpuf’) . ‘</div>’;
    if ( $post_id ) {
    $redirect = apply_filters( ‘wpuf_after_post_redirect’, get_permalink( $post_id ), $post_id );

    wp_redirect( $redirect );
    exit;
    }`
    and put this wp_redirect( 'https://yoursite.xxx/yourpage' ); exit;

Viewing 1 replies (of 1 total)
  • The topic ‘Need help to redirect users to a custom page’ is closed to new replies.