Add Cancel Button to a Custom Meta Box

I ended up using this: <a class=”clear_button hide-if-no-js button-cancel” title=”clear” data-clear style=”text-decoration:underline;”>Clear</a> It does the job. I was hoping for something more “WordPressy” but don’t see a metabox cancel function.

How to add contact seller button in product page

You can use woocommerce_single_product_summary hook to add custom button in the single product page in WooCommerce. Please check following example. Custom link added and button class is given to display it like a button. add_action( ‘woocommerce_single_product_summary’, ‘wpso_add_seller_button’, 15 ); function wpso_add_seller_button() { echo ‘<a href=”https://example.com” class=”button”>Contact Seller</a>’; }