Last active
September 14, 2017 01:37
-
-
Save FreeWPTP/35f0aa688c438298424b to your computer and use it in GitHub Desktop.
This small plugin by default checks the option "Yes, I'd like to create a new site" on BuddyPress registration page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Free WPTP Plugin | |
Description: By default check the option "Yes, I'd like to create a new site" on BuddyPress registration page | |
Version: 1.0.0 | |
Author: Free WPTP | |
Author URI: http://freewptp.com/ | |
License: GNU General Public License (Version 2 - GPLv2) | |
*/ | |
function freewptp_bp_get_signup_with_blog_value( $value ) { | |
$value = true; | |
return $value; | |
} | |
add_filter( 'bp_get_signup_with_blog_value', 'freewptp_bp_get_signup_with_blog_value'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the best, thank you very much now my multisite default Yes to create a new site