} $child_classes[$constant_value] = $class_name; } while (false); } WPLib::cache_set($cache_key, $child_classes); } return $child_classes; } /** * @return bool|string */ static function short_prefix() { return WPLib::get_constant('SHORT_PREFIX', get_called_class()); } /** * Returns the raw meta fieldname given a non-prefixed field name. * Adds both a leading underscore and a short prefix to the meta name. * * @param string $meta_name * * @return string */ static function _get_raw_meta_fieldname($meta_name) { $prefix = static::get_constant('SHORT_PREFIX'); return "_{$prefix}{$meta_name}"; } } WPLib::on_load();