Automattic\WooCommerce\Internal\Admin\Logging\FileV2
FileListTable::column_source()
Render the source column.
Метод класса: FileListTable{}
Хуков нет.
Возвращает
Строку
.
Использование
$FileListTable = new FileListTable(); $FileListTable->column_source( $item ): string;
- $item(File) (обязательный)
- The current log file being rendered.
Код FileListTable::column_source() FileListTable::column source WC 9.7.1
public function column_source( $item ): string { $log_file = $item->get_file_id(); $single_file_url = add_query_arg( array( 'view' => 'single_file', 'file_id' => $log_file, ), $this->page_controller->get_logs_tab_url() ); $rotation = ''; if ( ! is_null( $item->get_rotation() ) ) { $rotation = sprintf( ' – <span class="post-state">%d</span>', $item->get_rotation() ); } return sprintf( '<a class="row-title" href="%1$s">%2$s</a>%3$s', esc_url( $single_file_url ), esc_html( $item->get_source() ), $rotation ); }