Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@norcross
Created January 20, 2015 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norcross/4cadf150602a4ec56926 to your computer and use it in GitHub Desktop.
Save norcross/4cadf150602a4ec56926 to your computer and use it in GitHub Desktop.
filter the content notification to a single post ID
<?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