/** * Static shortcut to load_field_type_definition. * * @param string $field_type_slug * @return null|WPCF_Field_Type_Definition */ public static function load($field_type_slug) { // we cannot use self::get_instance here, because of low PHP requirements and missing get_called_class function // we have a fallback class for get_called_class but that scans files by debug_backtrace and return 'self' // instead of WPCF_Field_Type_Definition_Factory like the original get_called_class() function does // ends in an error because of parents (abstract) $var = new self(); return WPCF_Field_Type_Definition_Factory::get_instance()->load_field_type_definition($field_type_slug); }