Skip to content

Instantly share code, notes, and snippets.

@bhwebworks
Forked from fjarrett/gist:12bd7b39b3efdd6d905e
Last active August 29, 2015 14:09
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 bhwebworks/eb08eedda250f15fdbc6 to your computer and use it in GitHub Desktop.
Save bhwebworks/eb08eedda250f15fdbc6 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'wp_stream_record_array', 'bhww_filter_wp_stream_record_array', 10, 1 );
function bhww_filter_wp_stream_record_array( $recordarr ) {
if ( ! isset( $recordarr[0] ) )
return array();
// BackupBuddy (iThemes) entries
if ( 'settings' === $recordarr[0]['connector'] && isset( $recordarr[0]['stream_meta']['option'] ) && 'ithemes-updater-cache' === $recordarr[0]['stream_meta']['option']
)
return array();
// WP Help entries
if ( 'wp-help' === $recordarr[0]['context'] && isset( $recordarr[0]['stream_meta']['singular_name'] ) && 'help document' === $recordarr[0]['stream_meta']['singular_name']
)
return array();
// All other entries
return $recordarr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment