apply_filters ( 'jetpack_subscriptions_exclude_these_categories', array $args )

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

Source file: modules/subscriptions.php

View in GitHub



(array) Array of category slugs or ID’s.


Since: Jetpack 3.7.0


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' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s