Created
March 29, 2021 12:53
-
-
Save skyshab/f75ca52936b05ab24d66c70ded4fe50d to your computer and use it in GitHub Desktop.
Dequeue / remove a tribe asset
This file contains hidden or 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
| <?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