Yoast\WP\Lib
Model::use_short_table_name()
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() Model::use short table name Yoast 24.0
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; }