GC_Error::get_error_codes()

最后更新于:2021-11-27 14:43:36

GC_Error::get_error_codes()

Retrieves all error codes.

响应

(array) List of error codes, if available.

源文件

文件: gc-includes/class-gc-error.php

	public function get_error_codes() {
		if ( ! $this->has_errors() ) {
			return array();
		}

		return array_keys( $this->errors );
	}