Advertisement
eventsmanager

Elegant Themes Divi 2.4 patch

Jun 24th, 2015
1,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement