Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Simplified blog creation – blogname generated from Blog Title


peterverkooijen
Participant

@peterverkooijen

Removing the blogname field from the form and adding this to the next (?) function also does not work:

function bp_core_signup_validate_blog_form() {
$user = '';
if ( is_user_logged_in() )
$user = wp_get_current_user();

$_POST['blogname'] = preg_replace('/[^a-z0-9]/i', '', str_replace(' ', '', strtolower(wp_specialchars($blog_title, 1))));

return wpmu_validate_blog_signup($_POST['blogname'], $_POST['blog_title'], $user);
}

Is there any way to make that work or is it another dead end?

Skip to toolbar