Safari Push
[resolved] Empty category list (2 posts)

  1. MuViMoTV
    Posted 2 years ago #


    I've been getting errors with the category option when it's not been initialized...

    I went to the settings page and well no categories were listed there for me to pick from...

    It happens that all our posts are private and thus the categories count are always zero...

    Anyway that put aside, people might create categories for future use and still want to have notification sent once the the will create their first post in these categories...

    It would be nice that in the setting all categories are listed.

    I change your code like this:

    private function valid_category_array($defaults = false) {
    	$arr = array();
    	$categories = get_categories( array('public'=> true, 'hide_empty' => 0, 'show_count' => 0), "objects");

    This way all the categories are always listed...



  2. macgamer
    Plugin Author

    Posted 2 years ago #

    Thanks for that, I did not realise it hid empty categories by default.

    Will be in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Safari Push
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.