public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Simple debug function to echo a variable to the debug.log
 *
 * @since 1.0.0
 *
 * @param string $message Message that you would like to pass to the debug.log file.
 */
Simple debug function to echo a variable to the debug.log
@since 1.0.0

@param string $message Message that you would like to pass to the debug.log file.
Simple debug function to echo a variable to the debug . log @since 1 . 0 . 0 @param string $message Message that you would like to pass to the debug . log file .
function WPCW_debug( $message ) {
	if ( WP_DEBUG === true ) {
		if ( is_array( $message ) || is_object( $message ) ) {
			error_log( print_r( $message, true ) );
		} else {
			error_log( $message );
		}
	}
}
function WPCW_debug ( $ message ) { if ( WP_DEBUG === true ) { if ( is_array ( $ message ) || is_object ( $ message ) ) { error_log ( print_r ( $ message , true ) ) ; } else { error_log ( $ message ) ; } } }
Simple debug function to echo a variable to the debug.log
 @since 1.0.0
Simple debug function to echo a variable to the debug . log @since 1 . 0 . 0