<?php

declare(strict_types=1);

namespace AC\ThirdParty\MediaLibraryAssistant;

class ManageValue extends \AC\Table\ManageValue
{

    public function register(): void
    {
        add_filter('mla_list_table_column_default', [$this, 'render_value'], 100, 3);
    }

    public function render_value($value, $post, $column_name)
    {
        if (is_null($value)) {
            $value = $this->render_cell((string)$column_name, (int)$post->ID);
        }

        return $value;
    }

}