Last active
March 25, 2016 14:34
-
-
Save jeherve/6916682 to your computer and use it in GitHub Desktop.
[Jetpack] Exclude certain categories from Jetpack Subscriptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Exclude the asmodeus category from Jetpack Subscriptions | |
* Plugin URI: http://wordpress.org/plugins/jetpack/ | |
* Description: Exclude the asmodeus category from Jetpack Subscriptions | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ | |
function jeherve_sub_exclude_cat() { | |
if ( in_category( 'asmodeus' ) ) { | |
return false; | |
} | |
} | |
add_filter( 'jetpack_is_post_mailable', 'jeherve_sub_exclude_cat' ); |
In case anyone stumbles across this gist, this is the current solution: https://jetpack.com/support/subscriptions/#filters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are subscriptions no longer run through this filter?