run(); } repr_run(); /** * Write error to a log file named debug.log in wp-content. * * @param mixed $log The thing you want to log. * @since 1.0.0 */ function repr_log($log): void { if (defined('WP_DEBUG_LOG') && WP_DEBUG_LOG && true === WP_DEBUG) { if ($log instanceof \Throwable) { $log = $log->getMessage(); } elseif (!is_scalar($log)) { $log = wp_json_encode($log); } // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Only active when WP_DEBUG and WP_DEBUG_LOG are enabled. error_log((string) $log); } }