filter

jetpack_subscriptions_exclude_these_categories

Array of categories that will never trigger subscription emails. Will not send subscription emails from any post from within these categories.

Parameters

$args
array

Array of category slugs or ID's.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

Sometimes, you want to exclude a series of posts from Jetpack Subscriptions. You can do so thanks to the jetpack_subscriptions_exclude_these_categories filter. You can use that filter to exclude one or more categories. In the example below, we exclude all posts belonging to the “VaultPress” and “Akismet” categories:
function jetpackme_exclude_posts_subscriptions( $categories ) {
    $categories = array( 'vaultpress', 'akismet' );
    return $categories;
}
add_filter( 'jetpack_subscriptions_exclude_these_categories', 'jetpackme_exclude_posts_subscriptions' );