Skip to content

Instantly share code, notes, and snippets.

@mhasan3
Created June 3, 2017 05:57
Show Gist options
  • Save mhasan3/fb2b70069938f1ae96e404c3a8c957ce to your computer and use it in GitHub Desktop.
Save mhasan3/fb2b70069938f1ae96e404c3a8c957ce to your computer and use it in GitHub Desktop.
if(!function_exists('_log')){
function _log( $message ) {
if( WP_DEBUG === true ){
if( is_array( $message ) || is_object( $message ) ){
error_log( print_r( $message, true ) );
} else {
error_log( $message );
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment