Pre-Publish Reminders
Request: Increase the max # of reminders (2 posts)

  1. felthos
    Posted 5 years ago #

    I love this plugin, and it still seems to work just fine in v3.0.5 of WP. I would just like the cap on the # of reminders to be > 10. At least, it seems like that's the limit on the number that's displayed.



  2. felthos
    Posted 5 years ago #

    Well I couldn't leave well enough alone, and decided to go digging through the code to see if I could find an easy answer, and I got lucky and hit what at least works on my first try.

    Look for the line in the getAllReminders() function:
    $reminders = get_posts(array( 'numberposts' => 0, 'post_type' => $this->postType, 'orderby' => 'menu_order', 'order' => 'ASC'));

    and change it to:
    $reminders = get_posts(array( 'numberposts' => 20, 'post_type' => $this->postType, 'orderby' => 'menu_order', 'order' => 'ASC'));

    So all you're doing is changing the 0 to 20. I don't understand why it's 0 and not 10, but hey 20 is my new limit and that seems to work just fine.

    YMMV. Good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pre-Publish Reminders
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic