The Stack Overflow podcast is back! Listen to an interview with our new CEO.
1

You don't have to change the markup to style the previous/next links differently: .page-number { /* rules that apply to page numbers */ } .prev.page-number { /* previous page link */ } .next.page-number { /* rules that only apply to the next */ } Removing the class on the links is not needed, it can be done using basic CSS specificity rules ...


1

It's because you use double commas without escaping them. You replace this: $content = " The coupon code $coupon_code has been applied by a customer "; with this: $content = " The coupon code $coupon_code has been applied by a customer with <p style="text-align: right; direction: rtl;">The coupon code $coupon_code has ...


1

The hook you're looking for is "woocommerce payment complete" and it's triggered once an order has been marked as "complete". In the function called by that hook, you need to grab all coupons applied to the order, and check if any of them is the one you're looking for. add_action( 'woocommerce_payment_complete', 'so_payment_complete' ); function ...


Only top voted, non community-wiki answers of a minimum length are eligible