Hello,
Thanks for the report. The ar() function in inc/helpers.php is an intentional developer utility, not a stray debug statement.
function ar( $data ) {
echo '<pre>';
print_r( $data );
echo '</pre>';
}
It only runs when a developer explicitly calls ar($someVariable). Nothing calls it automatically during page loads, product processing, or session handling. The phpcs:ignore comment is there because the linter flags print_r as a development tool, and it was deliberately left in.
If you’re seeing error log spam or unexpected output, the source is elsewhere. Most likely a stray ar(), var_dump(), or error_log() call in a customization. A few things worth checking:
– Your child theme (wp-content/themes/woodmart-child/) for any calls to ar(, var_dump(, or print_r(
– Active plugins for debug output left in accidentally
– Enable WP_DEBUG_LOG temporarily to trace where the log entries actually come from
Kind Regards