console.table(" . json_encode( $data ) . ");";
} else {
$log = "";
}
global $console_log;
$console_log .= $log;
}
}
/*
* Output the error in the footer and send to console
*/
function output_log_to_footer() {
global $console_log;
echo $console_log;
}
add_action( 'wp_footer', 'output_log_to_footer' );
add_action( 'admin_footer', 'output_log_to_footer' );
/**
* Handles JavaScript detection.
* Adds a script that adds `js` class to the root `` element when JavaScript is detected.
*
* @since aspace 1.0
*/
function aspace_javascript_detection() {
echo "\n";
echo "";
}
add_action( 'wp_head', 'aspace_javascript_detection', 0 );
add_action( 'admin_head', 'aspace_javascript_detection', 0 );
/**
* admin_bar_color_dev_site function.
* So you can tell if your working on dev site or staging site by checking if admin bar is blue or not. Blue means staging
* @access public
* @return void
*/