Inpsyde\MultilingualPress\Common\Admin\SitesListTableColumn::__construct PHP Method

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $id, string $name, callable $render_callback, callable $add_callback = null )
$id string Column ID.
$name string Column name.
$render_callback callable Callback for rendering the column content.
$add_callback callable Optional. Callback to handle adding the column. Defaults to null.
    public function __construct($id, $name, callable $render_callback, callable $add_callback = null)
    {
        $this->id = (string) $id;
        $this->name = (string) $name;
        $this->render_callback = $render_callback;
        $this->add_callback = $add_callback;
    }