acf_validation::get_errors │ public │ ACF 5.0.0

This function will return validation errors

Method of the class: acf_validation{}

No Hooks.

Returns

(array|boolean).

Usage

$acf_validation = new acf_validation();
$acf_validation->get_errors();

Changelog

Since 5.0.0 Introduced.

acf_validation::get_errors() code ACF 6.8.8

function get_errors() {

	// bail early if no errors
	if ( empty( $this->errors ) ) {
		return false;
	}

	// return
	return $this->errors;
}