Support » Plugins and Hacks » [Plugin: Events Manager] deactivate buddypress

[Plugin: Events Manager] deactivate buddypress

  • hey devs,
    I’ve got a question. How can I deactivate events-manager only for buddypress. I don’t want to habe the tabs on buddypress. Maybe events in the stream are okay and the notifications.

    Also in the repository of buddypress (1.6) the new wordpress admin bar is used there, too. In that version the notifications are displayed wrong because a css class is missing. Maybe you can add that class “ab-item” to your links in the notification.. Also events manager adds another clean link to the notifications. So there’s a linebreak because of that…

    Thanks a lot


Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    what do you mean by deactivate EM in buddypress? remove the integration between the two or what features that you want to remove?

    remove the integration between the two.

    I want to remove that links in the user-bp-navigation..

    Plugin Author Marcus


    to remove BP completely, use this:

    remove_action( 'bp_include', 'bp_em_init' );

    Plugin Author Marcus


    remove EM from BP that is

    hm it doesn’t work 🙁
    I’m using event manager 5, maybe because of this the function doesn’t work..

    Plugin Author Marcus


    that should work. are you pasting this in the right place? e.g. your theme functions.php file

    yes I’m sure. I paste it in the functions file..

    I tried to do the same thing, but it doesn’t work. Turns out that calls are carried out in the following order:

    – add_action(‘bp_include’, ‘bp_em_init’) in events-manager.php
    – something I haven’t quite figured out yet
    – actual call to bp_em_init() function in events-manager.php
    – function.php in theme with remove_action(‘bp_include’, ‘bp_em_init’)

    As you can see, the ‘remove_action’ call occurs after the actual call to the bp_em_init() function in events-manager.php.

    Plugin Author Marcus


    you need to call ‘remove_action’ after the add_action has run. It should be after the plugins is loaded.

    you could try wrapping it within a plugins_loaded action hook

    this function doesn’t work, too.

    function remove_bp_events_manager() {
    remove_action( ‘bp_include’, ‘bp_em_init’ );
    add_action( ‘plugins_loaded’, ‘remove_bp_events_manager’);

    I too would like to be able to turn this functionality off. I’ve tried the remove_action method with no success.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Events Manager] deactivate buddypress’ is closed to new replies.