bp_blogs_get_signup_form_submitted_vars()

Returns the Blog signup’s submitted vars.


Return Return

(array) An associative array containing the Blog signup's submitted vars.


Source Source

File: bp-blogs/bp-blogs-functions.php

function bp_blogs_get_signup_form_submitted_vars() {
	$exprected_vars = array(
		'blogname'    => '',
		'blog_title'  => '',
		'blog_public' => 0,
	);

	$submitted_vars = wp_parse_args( $_POST, $exprected_vars );

	return array_map( 'wp_unslash', array_intersect_key( $submitted_vars, $exprected_vars ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.