Log activation errors if in debug mode
This commit is contained in:
parent
5b80c555d7
commit
1b30055287
@ -19,6 +19,9 @@ add_action( 'user_register', function( $user_id ) {
|
||||
add_action( 'pterotype_init', function() {
|
||||
\schema\run_migrations();
|
||||
\actors\initialize_actors();
|
||||
if ( WP_DEBUG ) {
|
||||
file_put_contents( __DIR__ . '/activation_errors.log', ob_get_contents() );
|
||||
}
|
||||
} );
|
||||
|
||||
add_action( 'pterotype_load', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user