This file contains hidden or 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 // <--- you don't need to include this. Your functions.php file already starts with it. | |
/** We need to include this line, otherwise the "if is plugin active" check won't work **/ | |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
/** | |
* Create (and name) a function | |
* to load your parent's stylesheet, (it's much better than the "@import" method!) | |
* any extra styles, and of course to remove styles as well |
This file contains hidden or 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 | |
add_filter( 'wp_die_handler', 'nc_get_custom_error_handler' ); | |
function nc_get_custom_error_handler() { | |
return 'nc_custom_error_handler'; | |
} | |
function nc_custom_error_handler( $message, $title = '', $args = array() ) { | |
$defaults = array( 'response' => 500, 'back_link' => false ); |