ActionScheduler_ListTable::column_hook │ public │ WC 1.0

Render the hook name and action ID.

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

Хуков нет.

Возвращает

string.

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

$ActionScheduler_ListTable = new ActionScheduler_ListTable();
$ActionScheduler_ListTable->column_hook( $row );
$row(массив) (обязательный)
Action data.

Код ActionScheduler_ListTable::column_hook() WC 11.2.2

public function column_hook( $row ) {
	$action_id = sprintf(
		/* translators: %d: Action ID. */
		__( 'ID: %d', 'woocommerce' ),
		absint( $row['ID'] )
	);

	return esc_html( $row['hook'] ) . '<br><small>' . esc_html( $action_id ) . '</small>' . $this->maybe_render_actions( $row, 'hook' );
}