'the-rite-sites-profit-plugins' ); } } /** * Adds a debugging message to the log if debug mode is activated * * @since 1.0.0 */ public static function add_debug( $msg ) { if ( WP_DEBUG || ( defined( 'AOC_WC_DEBUG' ) && AOC_WC_DEBUG ) ) { self::get_logger(); if ( is_array( $msg ) || is_object( $msg ) ) self::$logger->debug( 'aoc-wc: ' . wc_print_r( $msg ), self::$context ); else self::$logger->debug( 'aoc-wc: ' . $msg, self::$context ); } } }