WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
deactivate buddypress (12 posts)

  1. Ninos
    Member
    Posted 2 years ago #

    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

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    Hi,

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

  3. Ninos
    Member
    Posted 2 years ago #

    remove the integration between the two.
    http://DOMAIN.TLD/members/THE_USER/EVENTS_PERMALINK/

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

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    to remove BP completely, use this:

    remove_action( 'bp_include', 'bp_em_init' );

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    remove EM from BP that is

  6. Ninos
    Member
    Posted 2 years ago #

    hm it doesn't work :(
    I'm using event manager 5, maybe because of this the function doesn't work..

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

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

  8. Ninos
    Member
    Posted 2 years ago #

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

  9. basvanschaik
    Member
    Posted 2 years ago #

    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.

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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

  11. Ninos
    Member
    Posted 2 years ago #

    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');

  12. activefantasies
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic