Elegant Themes Divi 2.4 patch

Jun 24th, 2015
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. This snippet fixes a problem with the Elegant Themes Divi theme breaking the Events Manager Admin area showing events.
  3. To install this fix, you should save this as a php file and copy it to wp-content/mu-plugins (create the mu-plugins folder if it doesn't exist). More information on adding custom code here:
  5. */
  6. function fix_em_divi_problem(){
  7.     if( is_admin() ){
  8.         remove_action('parse_query', array('EM_Event_Post','parse_query'));
  9.         remove_action('restrict_manage_posts', array('EM_Event_Posts_Admin','restrict_manage_posts'));
  10.     }
  11. }
  12. add_action('admin_init', 'fix_em_divi_problem');
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.