-
-
Save boonebgorges/695e1eccf44b35dba7de11501eb9d057 to your computer and use it in GitHub Desktop.
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 | |
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