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.
Related Posts:
- How to add meta box to plugin admin page?
- Add custom meta box on Post page
- Validation Function for URL in plugin
- Creating Custom Meta Boxes on Plugin Option Page
- How to attach Links into page/post or custom post type?
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- Best Way to Remove WordPress Meta Box based on Post Status
- Plugin “Meta Box”: Implementing meta boxes in custom post type
- How WordPress autosave can save plugin fields?
- How can I filter the contents of a metafield before it’s displayed in the admin?
- Admin Dashboard with Custom Tab for Client
- Security checking in meta_box save is reluctant?
- Advanced Custom Fields
- RW Meta Box ,Problem setting post title
- dynamically generating plugin syntax
- Not able to complete meta box save function and sanitization/validation
- How do I create a custom add media button modal?
- Correct way to make meta box with more than one meta field secure
- get_post_type on post.php
- All of my custom posttypes are 404’ing
- Save / Show multi line text in metabox
- PHP basics help in WP context – remove a class/function?
- How to remove plugin metaboxes from edit.php
- How can I make my metabox appear?
- How to inform the user that the save was not successful?
- Show meta box only when post is being published first time
- Retrieving Meta from Image Attachment
- WordPress metaboxes – textfield suggestion automatically populated
- Why are my queries interfering with the global post variable?
- Finding the screen id of a page generated with add_menu_page
- AJAX on Front-End Button Click not working – Custom Plugin
- Date format – Meta Box plugin
- Meta Box by Rilwis, Load metabox on all page templates EXCEPT the homepage
- adding a button to the media uploader
- Skewed / slanted button within elementor [closed]
- Adding custom meta boxes to specified custom post type
- Access post title from custom meta box on title change
- Convert to shortcode?
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Disable submit button order
- add_meta_box creating default form field types
- Should meta boxes for specific pages be save in their own plugins?
- Generate Own Custom CSS Button with icon
- WordPress meta-box and checkbox-list
- Share buttons Facebook Twitter, just like wordpress.com without webservice
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Custom Meta box change size
- Upload PlugIn Button is missing
- Preset custom fields
- submit two file input fields in the same form
- WordPress default post categories meta box widget
- How can I change page content for good once a button is pressed?
- How to get checkbox by default true in metabox?
- How to pass multiple custom fields as shortcode’s parameters
- CMB2 Output Select Box Chosen Option
- How to execute certain code on back-end button press?
- WordPress CPT Url metabox collection
- how to send two forms with one click (script ninjaforms id)
- Add_Meta_box to custom page (formidable edit post)
- why my wordpress dont have toolbar like, plugin, themes and other?
- My own metabox checkbox plugin only saves the last value I’ve checked
- “Listen” button on my main post page
- CMB2 Post Search Field displays/repeats initial post if left empty
- hide load more button if there are no posts left to display
- Do something with thumbnail image on post publish
- How can I remove this sidebar from my Search Results page?
- Add custom field for users
- Add Flatr button to Sharing option
- Alter add_meta_box
- WordPress Settings – Custom Button actions
- Displaying image from a repeatable group
- How to add jquery to my custom post type wp plugin
- How to get rid of error message of custom metabox in dashboard when moving out of edit page?
- Metabox Data not saving
- Custom plugin breaks css.php on Multisite
- Change text “My Basket” in woocommerce artificer theme
- Advanced Custom Field User Help URL
- Problem for recover and save metaboxes
- How can i do custom author list?
- Meta Box plugin image_advanced not showing up on frontend
- How to change data format in custom meta box field [closed]
- How can i add a random redirect button in wordpress? [closed]
- iframe not showing on frontend when using a CMB2 field
- Problems with file_exists() with metabox plugin in WordPress
- Meta box not displaying on the plugin page
- add_meta_box showing blank screen in my page
- Update plugin from personal API
- Enabling free shipping on Woo Commerce by specific items [closed]
- How do I change the description of the same image which is to be found in multiple instances?
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- Displaying Gravity Form data on WordPress page [closed]
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- join 2 table orders wordpress plugin
- Install and Update plugins on a VPS WordPress installation
- WordPress Related Plugin – only show when related content
- Using plugin_dir_path() with WordPress on MAMP
- Contact Form 7 – Make a selection unavailable after a number of bookings
- Related posts popup
- Duplicator live to wamp https to http
- WordPress plugin header already sent