Skip to content

Instantly share code, notes, and snippets.

@jtsternberg
Forked from colorful-tones/remove-cmb2-styles.php
Last active August 17, 2016 14:45
Show Gist options
  • Save jtsternberg/1ed378a3b60bed8f84a8ea766d47adc0 to your computer and use it in GitHub Desktop.
Save jtsternberg/1ed378a3b60bed8f84a8ea766d47adc0 to your computer and use it in GitHub Desktop.
<?php
function maybe_disable_cmb2_styles( $enabled ) {
if ( ! is_admin() ) {
$enabled = false;
}
return $enabled;
}
add_filter( 'cmb2_enqueue_css', 'maybe_disable_cmb2_styles' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment