کسی نیست کمک کنه ؟؟؟؟
add_action('template_redirect', 'chekout_message');
function chekout_message() {
if ( is_checkout() && ! is_wc_endpoint_url() ) {
wc_add_notice( __('یک پیام دلخواه در تسویه حساب'), 'notice' );
}
}
add_action('template_redirect', 'cart_message');
function cart_message() {
if ( is_cart() && ! is_wc_endpoint_url() ) {
wc_add_notice( __('یک پیام دلخواه در سبد خرید '), 'notice' );
}
}