Created
January 20, 2015 14:53
-
-
Save norcross/4cadf150602a4ec56926 to your computer and use it in GitHub Desktop.
filter the content notification to a single post ID
This file contains 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 | |
add_filter( 'cun_single_item_email', 'rkv_single_cun_notify' ); | |
function rkv_single_cun_notify( $post_id ) { | |
return absint( $post_id ) === absint( THE_ID_I_WANT ) ? true : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment