Registering filters correctly for Buddy Press
-
Hi
We’ve updated
restrict-usernames.php
to support Buddypress correctly when registering it’s filters using function
public function register_filters()
as code below. If you are happy with the changes can you add it to the release to avoid us patching our version with each release?
Many thanks
Lines 162+
if ( is_multisite() ) ) { //Wordpress Multi-User add_filter( 'wpmu_validate_user_signup', array( $this, 'bp_members_validate_user_signup' ) ); } elseif ( defined( 'BP_VERSION' ) ) { //Buddy Press add_filter( 'bp_core_validate_user_signup', array( $this, 'bp_members_validate_user_signup' ) ); } else { //Word Press add_filter( 'validate_username', array( $this, 'username_restrictor' ), 10, 2 ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Registering filters correctly for Buddy Press’ is closed to new replies.