Change letters for day name

In the comments, @vancoder points out that it appears day names are not capitalized in Norwegian. If you require that they be capitalized, you could do something like this: ucfirst( get_the_date( ‘l’, $post ) ) . get_the_date( ‘ d.m.Y’, $post ) . get_the_time( ‘ H:i’, $post ); …using PHP’s ucfirst() to force the first character … Read more

Woocommerce inventory [closed]

The woocommerce_checkout_order_processed hook is too late. The order has already been created. You’d probably want to hook into woocommerce_after_checkout_validation so that you can check for the inventory before the order is even triggered and set an error that will be displayed at checkout. By hooking in here, you will be able to short circuit the … Read more