Inpsyde\MultilingualPress\API\WPDBLanguages::get_field_specifications PHP 메소드

get_field_specifications() 개인적인 메소드

Returns an array with the according specifications for all fields included in the given language.
private get_field_specifications ( array $language ) : array
$language array Language data.
리턴 array The array with the according specifications for all fields included in the given language.
    private function get_field_specifications(array $language)
    {
        return array_map(function ($field) {
            return isset($this->fields[$field]) ? $this->fields[$field] : '%s';
        }, array_keys($language));
    }