WordPress.org

Support

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

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

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

    @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

    alinkbroker
    Member

    @alinkbroker

    Great, thank you for the quick respose and support!

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