LLMS_Admin_User_Custom_Fields::validate_fields( WP_User|int $user )

Validate custom fields


Description Description

By default only checks for valid as core fields don’t have any special validation.

If adding custom fields, hook into the action run after required validation to add special validation rules for your field.


Parameters Parameters

$user

(Required) Instance of WP_User or WP User ID.


Top ↑

Return Return

(string|bool) false if no validation errors or the error message (as a sttring) if validation errors occurred.


Top ↑

Source Source

File: includes/admin/class.llms.admin.user.custom.fields.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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