Support » Plugin: Chrome Push Notifications » Notify specific category only

  • Hi,

    i enabled the plugin and it works, but because I have too much post categories, I would love to make it work only with specific category.
    Is this possible?

    I found a function ( onPostStatusChange() ) where the plugin checks if there are any new posts, so I should probably put some adjustments here, right?
    What do you think, what is the best way to do this? Maybe to add something like this, or you have another solution:

    if (is_array($selected_post_types) && in_array($post->post_type, $selected_post_types) && ($post->post_category="category slug or ID")) {

    Also, selecting a post categories would be nice feature to add in next plugin update…

    Thanks

    • This topic was modified 2 years, 7 months ago by  Apatrid.
Viewing 1 replies (of 1 total)
  • Plugin Author aglipanci

    (@aglipanci)

    I guess that would work. Google has changed the Cloud Messaging API so I don’t think I will work on an update for the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Notify specific category only’ is closed to new replies.