Skip to content

Instantly share code, notes, and snippets.

@alaasalama
Created March 4, 2019 22:34
Show Gist options
  • Save alaasalama/87e96bfcc99ba3677e43a72fa7839ce1 to your computer and use it in GitHub Desktop.
Save alaasalama/87e96bfcc99ba3677e43a72fa7839ce1 to your computer and use it in GitHub Desktop.
hide free from RSVP cost
function hide_free_from_rsvp() {
?>
<script type="text/javascript">
// your javscript code goes here
jQuery( document ).ready(function() {
jQuery('.tribe-events-event-cost, .tribe-events-cost').each(function() {
jQuery(".tribe-events-event-cost").text().replace("Gratis – ", "")
var text = jQuery(this).text();
text = text.replace("Gratis – ", "");
jQuery(this).text(text);
});
});
</script>
<?php
}
add_action('wp_head', 'hide_free_from_rsvp');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment