How to use with other hooks
-
Currently on our woocommerce site we have used the “woocommerce_proceed_to_checkout” hook to display message to customers using the action..
add_action( 'woocommerce_proceed_to_checkout', 'order_notice_for_shipping' ); function order_notice_for_shipping() { echo '<p class="shipping-info-text">Orders placed at this time will be shipped Monday.</p>'; }
Now obviously this is static, and basically what the goal would be is to swap out two different messages (hide one, show the other) based on the Timed Content Settings.
I’m not sure how to convert these using the Timed Content shortcodes like the above using the woocommerce hooks and get them to work together.
Could you provide an example using the above existing hook function?Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use with other hooks’ is closed to new replies.