filtrod MU (3.0.0)
wpmu_validate_blog_signup
Opis — z kodu źródłowego
Filters site details and error messages following registration.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$result | array | { Array of domain, path, site name, site title, user and error messages. @type string $domain Domain for the site. @type string $path Path for the site. Used in subdirectory installations. @type string $blogname The unique site name (slug). @type string $blog_title Site title. @type string|WP_User $user By default, an empty string. A user object if provided. @type WP_Error $errors WP_Error containing any errors found. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wpmu_validate_blog_signup', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wpmu_validate_blog_signup', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}