Skip to:
Content
Pages
Categories
Search
Top
Bottom

Multisite hook problem


  • Morto1
    Participant

    @morto1

    Hi Support Team,

    As far as I discovered, BuddyPress registration form uses WP multisite hook (wpmu_validate_user_signup), and when checking the data from registration form calls it through apply_filter.
    In /buddypress/bp-members/bp-members-functions.php there is “bp_core_validate_user_signup” function, in which the hook is called the following way:

    if ( function_exists( 'wpmu_validate_user_signup' ) ) {
    ...
    } else {
    ...
    $result = apply_filters( 'wpmu_validate_user_signup', $result );
    }

    That is why, it seems that multisite hook goes off on non-multisite, which, I’m afraid, is not exactly correct.

    Would it be possible that you implemented some sort of a check if a current blog is a multisite (and in this case call the hook ‘wpmu_validate_user_signup’), and if not – use another non-multisite hook (for instance http://codex.wordpress.org/Plugin_API/Action_Reference/register_post )?

    That would be great! Looking forward to hear from you.

    Regards,
    Morten

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    $result = apply_filters( 'wpmu_validate_user_signup', $result );
    Are you sure that the filter hook is being used? As opposed to simply being available?

    You can create a ticket in trac.

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite hook problem’ is closed to new replies.
Skip to toolbar