Support » Plugin: SpeakUp! Email Petitions » [Plugin: SpeakUp! Email Petitions] Stop accepting signatures after goal is met

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kreg Wallace

    (@kreg)

    There aren’t any built-in options for that. The easiest thing to do would be to notice when you’ve collected all the signatures and then edit the petition to have an expiration date of the current time.

    Alternately you could open up includes/emailpetition.php and edit the line that checks for expiration (line 51 or so) from

    if ( ! $expired ) {

    to

    if ( $petition->signatures <= $petition->goal ) {

    And then change the expiration message text on the settings page to something more appropriate.

    For the widget, you’d need to make a similar change in widget.php

    Great, thank you for the quick respose and support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: SpeakUp! Email Petitions] Stop accepting signatures after goal is met’ is closed to new replies.