@@ 200-202 (lines=3) @@ | ||
197 | $excluded_categories = apply_filters( 'jetpack_subscriptions_exclude_these_categories', array() ); |
|
198 | ||
199 | // Never email posts from these categories |
|
200 | if ( ! empty( $excluded_categories ) && in_category( $excluded_categories, $post->ID ) ) { |
|
201 | update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 ); |
|
202 | } |
|
203 | ||
204 | /** |
|
205 | * ONLY send subscription emails for these categories |
|
@@ 218-220 (lines=3) @@ | ||
215 | $only_these_categories = apply_filters( 'jetpack_subscriptions_exclude_all_categories_except', array() ); |
|
216 | ||
217 | // Only emails posts from these categories |
|
218 | if ( ! empty( $only_these_categories ) && ! in_category( $only_these_categories, $post->ID ) ) { |
|
219 | update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 ); |
|
220 | } |
|
221 | ||
222 | // Email the post, depending on the checkbox option |
|
223 | if ( ! empty( $_POST['disable_subscribe_nonce'] ) && wp_verify_nonce( $_POST['disable_subscribe_nonce'], 'disable_subscribe' ) ) { |