Skip to content

Instantly share code, notes, and snippets.

@varun-pluginhive
Created January 2, 2019 11:14
Show Gist options
  • Save varun-pluginhive/364f48a56a5bbf9d0b65933cd1d395e6 to your computer and use it in GitHub Desktop.
Save varun-pluginhive/364f48a56a5bbf9d0b65933cd1d395e6 to your computer and use it in GitHub Desktop.
Snippet to hide the number of places left shown in WooCommerce Bookings on hover. WooCommerce Bookings And Appointments - https://www.pluginhive.com/product/woocommerce-booking-and-appointments/
/**
* Snippet to hide the number of places left shown in WooCommerce Bookings on hover.
* Created at : 02 Jan 2019
* Updated at : 02 Jan 2019
* PluginHive Plugins : https://www.pluginhive.com/plugins/
* Gist Link :
*/
add_action( 'woocommerce_after_single_product', function() {
?>
<script>
jQuery( ".ph-calendar-date" ).attr( "title", "" );
jQuery( document ).ajaxComplete(function() {
jQuery( ".ph-calendar-date" ).attr( "title", "" );
});
</script>
<?php
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment