BP_XProfile_Group::admin_validate()
Validate field group when form submitted.
Description Description
Return Return
(boolean)
Source Source
File: bp-xprofile/classes/class-bp-xprofile-group.php
public static function admin_validate() {
global $message;
// Validate Form.
if ( empty( $_POST['group_name'] ) ) {
$message = __( 'Please make sure you give the group a name.', 'buddypress' );
return false;
} else {
return true;
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |