IconPicker.php 572 Bytes
<?php

namespace ACP;

use AC\Column;
use AC\Registerable;
use ACP\Settings\Column\Label;

class IconPicker implements Registerable {

	public function register() {
		add_action( 'ac/column/settings', [ $this, 'register_column_settings' ] );
	}

	/**
	 * Replace the default label setting with an pro version that includes an iconpicker
	 *
	 * @param Column $column
	 *
	 * @return void;
	 */
	public function register_column_settings( Column $column ) {
		// We overwrite the default label setting with a pro version
		$column->add_setting( new Label( $column ) );
	}

}