BP_XProfile_Group::admin_validate()
Validate field group when form submitted.
Description
Return
(boolean)
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.', 'buddyboss' ); return false; } else { return true; } }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.