Skip to content

Instantly share code, notes, and snippets.

@mrkdevelopment
Created August 6, 2018 22:25
Show Gist options
  • Save mrkdevelopment/04daf0795f9fa7ce5b47968952cf9c76 to your computer and use it in GitHub Desktop.
Save mrkdevelopment/04daf0795f9fa7ce5b47968952cf9c76 to your computer and use it in GitHub Desktop.
remove divi cpt style action
/**
* Disable new divi crazy crap code for CPT
**/
function disable_cptdivi()
{
remove_action( 'wp_enqueue_scripts', 'et_divi_replace_stylesheet', 99999998 );
}
add_action('init', 'disable_cptdivi');
@mbryne
Copy link

mbryne commented Aug 17, 2018

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment