Multisite hook problem
-
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
- The topic ‘Multisite hook problem’ is closed to new replies.