Redirect to «Thank You» Page

Can you add the function to have a redirection to another URL (for example, a "Thank You" page) when someone submits to the poll?

This would be a nice touch!

Thanks!
Gary

0
Gary
2.6 лет назад
  • 0
    Kama 9894

    There is a hook dem_voted where you cat do any staff you need:

    add_action( 'dem_voted', function( $voted_for, $poll_data, $poll_object ){
    
    	if( defined( 'DOING_AJAX' ) ){
    		// js redirect
    	}
    	else {
    		// php redirect
    	}
    
    } );
    Комментировать
На вопросы могут отвечать только зарегистрированные пользователи. Вход . Регистрация