WordPress.org

Forums

SpeakUp! Email Petitions
[resolved] Stop accepting signatures after goal is met (3 posts)

  1. alinkbroker
    Member
    Posted 2 years ago #

    Say I set the signature goal to 40. Once this goal is met, is there a way to stop accepting signatures? Right now, if someone signs and confirms their email, their signature is added, making it 41 and so on. I'm hoping there may be a way to lock it (similar to the view when it hits the expiration date).
    Thank you for your assistance!

    http://wordpress.org/extend/plugins/speakup-email-petitions/

  2. Kreg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. alinkbroker
    Member
    Posted 2 years ago #

    Great, thank you for the quick respose and support!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SpeakUp! Email Petitions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.