@@ 207-209 (lines=3) @@ | ||
204 | $excluded_categories = apply_filters( 'jetpack_subscriptions_exclude_these_categories', array() ); |
|
205 | ||
206 | // Never email posts from these categories |
|
207 | if ( ! empty( $excluded_categories ) && in_category( $excluded_categories, $post->ID ) ) { |
|
208 | update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 ); |
|
209 | } |
|
210 | ||
211 | /** |
|
212 | * ONLY send subscription emails for these categories |
|
@@ 225-227 (lines=3) @@ | ||
222 | $only_these_categories = apply_filters( 'jetpack_subscriptions_exclude_all_categories_except', array() ); |
|
223 | ||
224 | // Only emails posts from these categories |
|
225 | if ( ! empty( $only_these_categories ) && ! in_category( $only_these_categories, $post->ID ) ) { |
|
226 | update_post_meta( $post->ID, '_jetpack_dont_email_post_to_subs', 1 ); |
|
227 | } |
|
228 | ||
229 | // Email the post, depending on the checkbox option |
|
230 | if ( ! empty( $_POST['disable_subscribe_nonce'] ) && wp_verify_nonce( $_POST['disable_subscribe_nonce'], 'disable_subscribe' ) ) { |