Yoast\WP\Lib

Model::use_short_table_name()protected staticYoast 1.0

Should short table names, disregarding class namespaces, be computed?

$class_property overrides $global_option, unless $class_property is null.

Метод класса: Model{}

Хуков нет.

Возвращает

true|false. True when short table name should be used.

Использование

$result = Model::use_short_table_name( $class_name );
$class_name(строка) (обязательный)
The class name to get short name for.

Код Model::use_short_table_name() Yoast 22.4

protected static function use_short_table_name( $class_name ) {
	$class_property = static::get_static_property( $class_name, 'table_use_short_name' );

	if ( $class_property === null ) {
		return static::$short_table_names;
	}

	return $class_property;
}