0 * * * * /bin/mysql --user=__user_name__ --password=__user_password__ __DATABASE_NAME__ <"DELETE FROM `battle_users` WHERE `btl` IN ( SELECT `id` FROM `battle` WHERE `team_win` >= 0 ) OR `btl` NOT IN ( SELECT `id` FROM `battle` )" >/var/log/cron_mysql_err.log 2>&1
__строки__
заменить на нужные значения. И следить за содержимым /var/log/cron_mysql_err.log
. <!--KARUSEL-->
.$karusel_HTML = file_get_contents("./karusel.html");
$html = str_replace("<!--KARUSEL-->", $karusel_HTML, $html);
$customer_id = get_current_user_id();
$last_order = wc_get_customer_last_order( $customer_id );
$order_id = $last_order->get_id();
$pros_html = "<div class='pcf-row'><b>Номер вашего заказа: {$order_id}</b></div>
<script type='text/javascript'>
jQuery(document).ready(function ($) {var order_id = '{$order_id}';console.log(order_id);});
</script>";