• Hi, i have a wordpress website which adds new posts via cron and wp_insert_post every 2 minutes and i want to disable new post email notifications for some of the categories… I found a filter “jetpack_subscriptions_exclude_these_categories” which is supposed to do what i want but it doesnt… Can you please tell me what i am doing wrong… I have these in my functions.php

    function exclude_these_sport_categories($array){$array=array(67907,67964);return $array;}
    function dont_publicize_cron($should_publicize,$post){return false;}
    
    add_filter('publicize_should_publicize_published_post','dont_publicize_cron',10,2);
    add_filter('jetpack_subscriptions_exclude_these_categories','exclude_these_sport_categories',10,1);
    add_filter('jetpack_sync_listener_should_load','__return_true');
    add_filter('jetpack_sync_sender_should_load','__return_true');
    • This topic was modified 8 years, 4 months ago by slayer1ss.
Viewing 1 replies (of 1 total)
  • Thread Starter slayer1ss

    (@slayer1ss)

    This is wierd, i checked my test mail account it seems subscription mails sometimes come and sometimes doesnt for the same category?

Viewing 1 replies (of 1 total)
  • The topic ‘couldnt get jetpack_subscriptions_exclude_these_categories to work’ is closed to new replies.