WordPress.org

Ready to get started?Download WordPress

Forums

has wpmu_new_user been replaced (3 posts)

  1. Terranb
    Member
    Posted 4 years ago #

    Hi,

    I'm using a plugin that makes use of that hook to give new WPMU registrations a permission in bbpress. This had been working on a WP 3.0 MU install of about two weeks ago. After updating yesterday it's not working. Is there any chance that wpmu_new_user has been changed to something else?

    Here's the full code of the plugin which is installed in mu-plugins:

    <?php
    /*
    Plugin Name: WPMU Enable bbPress Capabilities
    Version: 0.1
    Plugin URI: http://www.michaeleagan.com/plugins/wpmu-enable-bbpress-capabilities/
    Author: Michael Eagan
    Author URI: http://www.michaeleagan.com/
    Description: Enables bbPress member capabilities when a user is created within WPMU. This allows immediate login as a 'member' after a user is created in WPMU.
    */
    
    function enable_bbpress_forum_capabilities( $user_id )  {
    	update_usermeta($user_id, 'bb_capabilities', array('member' => true));
    	return;
    }
    add_action('wpmu_new_user', 'enable_bbpress_forum_capabilities');
    
    ?>
  2. Best bet woudl be to check trac.

    http://core.trac.wordpress.org/

  3. Terranb
    Member
    Posted 4 years ago #

    Thanks Andrea.

    I found this http://core.trac.wordpress.org/ticket/13088 which I think is the reason. I'm a little confused though.

    Maybe I need to replace update_usermeta($user_id, 'bb_capabilities', array('member' => true)); with update_user_meta($user_id, 'bb_capabilities', array('member' => true));?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.