Skip to content

Instantly share code, notes, and snippets.

@FreeWPTP
Last active September 14, 2017 01:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FreeWPTP/35f0aa688c438298424b to your computer and use it in GitHub Desktop.
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
<?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');
@hilfans
Copy link

hilfans commented Sep 14, 2017

the best, thank you very much now my multisite default Yes to create a new site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment