StonehengeCreations

EM - Remove Coupons CSS from Header

Oct 2nd, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <?php
  2. /********************
  3. Events Manager Pro adds css styling for the coupon (spinning wheel, success and error message) in the header of each and every page. Use this snippet to prevent that to clutter your source code and use your own styling in your style.css.
  4. ********************/
  5. function stonehenge_em_remove_coupon_css() {
  6.     remove_action( 'wp_head', array( 'EM_Coupons', 'wp_head' ) );
  7. }
  8. add_action( 'init', 'stonehenge_em_remove_coupon_css' );
Advertisement
Add Comment
Please, Sign In to add comment