Skip to content

Instantly share code, notes, and snippets.

@skyshab
Created March 29, 2021 12:53
Show Gist options
  • Select an option

  • Save skyshab/f75ca52936b05ab24d66c70ded4fe50d to your computer and use it in GitHub Desktop.

Select an option

Save skyshab/f75ca52936b05ab24d66c70ded4fe50d to your computer and use it in GitHub Desktop.
Dequeue / remove a tribe asset
<?php
// Remove an asset that was registered with Tribe Assets (v2 only).
// The asset name can be found by finding where the file is loaded
// in the site head. The value to use will be the ID of the style
// or script block.
add_action('wp_enqueue_scripts', function() {
tribe('assets')->remove('tribe-tickets-plus-modal-styles');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment