Support » Plugin: Server IP & Memory Usage Display » Conflict – Event Espresso

  • Resolved miketemby

    (@miketemby)


    This plugin does not work if Event Espresso is active, which is annoying because those are the sites I need it working on. Event Espresso is quite a memory hog and I need to manage that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think it is because Event Espresso also adds something to the WP Admin footer…

    Maybe add the option to display the memory info elsewhere?

    Plugin Author apasionados

    (@apasionados)

    Hi @miketemby,

    We are sorry that the plugin doesn’t work for you. There is an incompatibility with Event Espresso because their plugin overwrites completly the footer and this has been like that for nearly three years.
    We append information to the existing footer and their plugin overwrites it completly. We are sorry but we can’t do anything about it.

    Best regards from Spain.

    Hi There,

    I spoke to EE team about it and they provided me the following code to add to my child theme. This fixes the issue so both footer elements are added.

    Including this here in case anyone else needs it. Cheers,

    
    <?php //Please do not include the opening PHP tag if you already have one.
    //Remove the EE espresso_admin_footer callback and add another which includes current content.
    add_action('admin_init', 'tw_filter_admin_footer_text');
    function tw_filter_admin_footer_text() {
        $admin = EE_Registry::instance()->load_core('EE_Admin');
        remove_filter('admin_footer_text', array($admin, 'espresso_admin_footer'));
        add_filter('admin_footer_text', 'tw_filter_powered_by_event_espresso');
    }
    function tw_filter_powered_by_event_espresso($content = '')
    {
        $powered_by_event_espresso = \EEH_Template::powered_by_event_espresso('aln-cntr', '', array('utm_content' => 'admin_footer'));
        return $content ? $powered_by_event_espresso . '<br/>' . $content : $powered_by_event_espresso;
    }
    
    Plugin Author apasionados

    (@apasionados)

    Hi @miketemby,

    Thanks for posting the solution.

    Best regards from Spain.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict – Event Espresso’ is closed to new replies.