SHARE
TWEET

Elegant Themes Divi 2.4 patch

eventsmanager Jun 24th, 2015 (edited) 1,090 Never
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:
  4. http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top