Skip to content

Instantly share code, notes, and snippets.

@boonebgorges
Created March 13, 2017 20:31
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 boonebgorges/695e1eccf44b35dba7de11501eb9d057 to your computer and use it in GitHub Desktop.
Save boonebgorges/695e1eccf44b35dba7de11501eb9d057 to your computer and use it in GitHub Desktop.
<?php
function bbg_debug_bp_core_no_access( $r ) {
$email = 'you@example.com';
$db = debug_backtrace();
wp_mail( $email, 'bp_core_no_access() debug data', print_r( $db, true ) );
return $r;
}
add_filter( 'bp_core_no_access', 'bbg_debug_bp_core_no_access' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment