| 1 |
<?php |
| 2 |
/** |
| 3 |
* Debug |
| 4 |
* |
| 5 |
* @package GamiPress\Admin\Debug |
| 6 |
* @author GamiPress <contact@gamipress.com>, Ruben Garcia <rubengcdev@gmail.com> |
| 7 |
* @since 1.0.6 |
| 8 |
*/ |
| 9 |
// Exit if accessed directly |
| 10 |
if( !defined( 'ABSPATH' ) ) exit; |
| 11 |
|
| 12 |
/** |
| 13 |
* Helper function to check if debug mode is enabled |
| 14 |
* |
| 15 |
* @since 1.0.6 |
| 16 |
* |
| 17 |
* @return bool |
| 18 |
*/ |
| 19 |
function gamipress_is_debug_mode() { |
| 20 |
|
| 21 |
return (bool) gamipress_get_option( 'debug_mode', false ); |
| 22 |
} |