<?php 

function visitors_cb() {
	do_action("display_qf_search_box", [
	  	'default' => ['s_date' => 'this_month', 'column' => ['time' => 'Time', 'visitor_name' => 'Visitor\'s name', 'ip' => 'IP']],
	    'id' => "visitors",
	    'query_function' => 'query_qf_get_visitors',
	    'settings' => ['autostart' => false, 'autoload' => true, 'limit' => 100, 'callback' => 'initDataTableKoweb', 'callbackid' => '#visitors_table table'],
	]);
}