Created
January 2, 2019 11:14
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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