Need to tweak, noticed a bug when registered emails want to enter a new draw
-
Hi Carlos!
I noticed a bug. I have used Sweepstakes to do several draws very successfully.
Today in a new draw I added a new field. I noticed that registered users get registered without seeing that new field.
Here’s the php:
I need to tweak the php to make every registration show the new fields regardless of whether or not the person registering is new or returning. I’ve run several sweepstakes and all worked out well with WordPress 3.5.1. This time I had to add another field. My new registrants see the field but old registrants do not. How can I tweak the php?
Here’s the code:
/**
* show promo register process
*
* @package Swepstakes
* @since 0.1
*
**/
function sw_promo_process() {
global $post;if ( !$post ) return;
// check if contest is finished
//if (sw_check_finished()) return;// process forms
if (is_user_logged_in()) {
sw_promo_logged_form();
} else {
sw_promo_form();
}
}How can I change it to show all the fields for everybody, new and registered visitors?
Thanks!
- The topic ‘Need to tweak, noticed a bug when registered emails want to enter a new draw’ is closed to new replies.