Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This snippet fixes a problem with the Elegant Themes Divi theme breaking the Events Manager Admin area showing events.
- 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:
- http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- */
- function fix_em_divi_problem(){
- if( is_admin() ){
- remove_action('parse_query', array('EM_Event_Post','parse_query'));
- remove_action('restrict_manage_posts', array('EM_Event_Posts_Admin','restrict_manage_posts'));
- }
- }
- add_action('admin_init', 'fix_em_divi_problem');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement